githubsearch

package
v2.0.1-0...-d4b4061 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Sep 10, 2021 License: MIT Imports: 2 Imported by: 0

Documentation

Index

Constants

View Source
const (
	Asc SortDirection = iota
	Desc

	UpdatedAt SortField = "updated"
	CreatedAt SortField = "created"

	Issue       EntityType = "issue"
	PullRequest EntityType = "pr"

	Open   State = "open"
	Closed State = "closed"
	Merged State = "merged"

	Public  RepoVisibility = "public"
	Private RepoVisibility = "private"
)

Variables

This section is empty.

Functions

This section is empty.

Types

type EntityType

type EntityType string

type Query

type Query struct {
	// contains filtered or unexported fields
}

func NewQuery

func NewQuery() *Query

func (*Query) AddLabel

func (q *Query) AddLabel(name string)

func (*Query) AddQuery

func (q *Query) AddQuery(query string)

func (*Query) AssignedTo

func (q *Query) AssignedTo(user string)

func (*Query) AuthoredBy

func (q *Query) AuthoredBy(user string)

func (*Query) InMilestone

func (q *Query) InMilestone(title string)

func (*Query) InRepository

func (q *Query) InRepository(nameWithOwner string)

func (*Query) IncludeForks

func (q *Query) IncludeForks(include bool)

func (*Query) Mentions

func (q *Query) Mentions(handle string)

func (*Query) OnlyForks

func (q *Query) OnlyForks()

func (*Query) OwnedBy

func (q *Query) OwnedBy(owner string)

func (*Query) SetArchived

func (q *Query) SetArchived(isArchived bool)

func (*Query) SetBaseBranch

func (q *Query) SetBaseBranch(name string)

func (*Query) SetHeadBranch

func (q *Query) SetHeadBranch(name string)

func (*Query) SetLanguage

func (q *Query) SetLanguage(name string)

func (*Query) SetState

func (q *Query) SetState(s State)

func (*Query) SetTopic

func (q *Query) SetTopic(name string)

func (*Query) SetType

func (q *Query) SetType(t EntityType)

func (*Query) SetVisibility

func (q *Query) SetVisibility(visibility RepoVisibility)

func (*Query) SortBy

func (q *Query) SortBy(field SortField, direction SortDirection)

func (*Query) String

func (q *Query) String() string

type RepoVisibility

type RepoVisibility string

type SortDirection

type SortDirection int

type SortField

type SortField string

type State

type State string

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL