Documentation ¶
Index ¶
- Constants
- type EntityType
- type Query
- func (q *Query) AddLabel(name string)
- func (q *Query) AddQuery(query string)
- func (q *Query) AssignedTo(user string)
- func (q *Query) AuthoredBy(user string)
- func (q *Query) InMilestone(title string)
- func (q *Query) InRepository(nameWithOwner string)
- func (q *Query) IncludeForks(include bool)
- func (q *Query) Mentions(handle string)
- func (q *Query) OnlyForks()
- func (q *Query) OwnedBy(owner string)
- func (q *Query) SetArchived(isArchived bool)
- func (q *Query) SetBaseBranch(name string)
- func (q *Query) SetHeadBranch(name string)
- func (q *Query) SetLanguage(name string)
- func (q *Query) SetState(s State)
- func (q *Query) SetTopic(name string)
- func (q *Query) SetType(t EntityType)
- func (q *Query) SetVisibility(visibility RepoVisibility)
- func (q *Query) SortBy(field SortField, direction SortDirection)
- func (q *Query) String() string
- type RepoVisibility
- type SortDirection
- type SortField
- type State
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 (*Query) AssignedTo ¶
func (*Query) AuthoredBy ¶
func (*Query) InMilestone ¶
func (*Query) InRepository ¶
func (*Query) IncludeForks ¶
func (*Query) SetArchived ¶
func (*Query) SetBaseBranch ¶
func (*Query) SetHeadBranch ¶
func (*Query) SetLanguage ¶
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)
type RepoVisibility ¶
type RepoVisibility string
type SortDirection ¶
type SortDirection int
Click to show internal directories.
Click to hide internal directories.