Documentation ¶
Index ¶
- type Author
- type BaseRef
- type BranchProtectionRule
- type ByIssuesString
- type ByPullsString
- type Comments
- type Commit
- type CommitEntry
- type Commits
- type Context
- type Issue
- type Label
- type Labels
- type PullRequest
- func (p *PullRequest) ColoredReviewDecision() string
- func (p *PullRequest) ColoredTitle() string
- func (p *PullRequest) ContextsString() string
- func (p *PullRequest) Display() bool
- func (p *PullRequest) FailedContexts() []Context
- func (p *PullRequest) HasContext(name string) bool
- func (p *PullRequest) HasLabel(name string) bool
- func (p *PullRequest) LabelsString() string
- func (p *PullRequest) MergeableString() string
- func (p *PullRequest) PullsString() string
- func (p *PullRequest) TrimmedTitle() string
- type Repository
- type StatusCheckRollup
- type StatusContext
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type BaseRef ¶
type BaseRef struct {
BranchProtectionRule BranchProtectionRule `json:"branchProtectionRule"`
}
type BranchProtectionRule ¶
type BranchProtectionRule struct {
RequiredStatusCheckContexts []string `json:"requiredStatusCheckContexts"`
}
type ByIssuesString ¶
type ByIssuesString []Issue
func (ByIssuesString) Len ¶
func (p ByIssuesString) Len() int
func (ByIssuesString) Less ¶
func (p ByIssuesString) Less(i, j int) bool
func (ByIssuesString) Swap ¶
func (p ByIssuesString) Swap(i, j int)
type ByPullsString ¶
type ByPullsString []PullRequest
func (ByPullsString) Len ¶
func (p ByPullsString) Len() int
func (ByPullsString) Less ¶
func (p ByPullsString) Less(i, j int) bool
func (ByPullsString) Swap ¶
func (p ByPullsString) Swap(i, j int)
type Commit ¶
type Commit struct {
StatusCheckRollup StatusCheckRollup `json:"statusCheckRollup"`
}
type CommitEntry ¶
type CommitEntry struct {
Commit Commit `json:"commit"`
}
type Commits ¶
type Commits struct {
Nodes []CommitEntry `json:"nodes"`
}
type Issue ¶
type Issue struct { Number int `json:"number"` Title string `json:"title"` URL string `json:"url"` CreatedAt time.Time `json:"createdAt"` Author Author `json:"author"` Labels Labels `json:"labels"` Closed bool `json:"closed"` Repository Repository `json:"repository"` Comments Comments `json:"comments"` }
func (*Issue) ColoredTitle ¶
func (*Issue) IssueString ¶
func (*Issue) LabelsString ¶
func (*Issue) TrimmedTitle ¶
type PullRequest ¶
type PullRequest struct { Number int `json:"number"` Title string `json:"title"` URL string `json:"url"` Mergeable string `json:"mergeable"` CreatedAt time.Time `json:"createdAt"` Author Author `json:"author"` Labels Labels `json:"labels"` Commits Commits `json:"commits"` Closed bool `json:"closed"` Repository Repository `json:"repository"` Comments Comments `json:"comments"` ReviewDecision string `json:"reviewDecision"` BaseRef BaseRef `json:"baseRef"` }
func (*PullRequest) ColoredReviewDecision ¶
func (p *PullRequest) ColoredReviewDecision() string
func (*PullRequest) ColoredTitle ¶
func (p *PullRequest) ColoredTitle() string
func (*PullRequest) ContextsString ¶
func (p *PullRequest) ContextsString() string
func (*PullRequest) Display ¶
func (p *PullRequest) Display() bool
func (*PullRequest) FailedContexts ¶
func (p *PullRequest) FailedContexts() []Context
func (*PullRequest) HasContext ¶
func (p *PullRequest) HasContext(name string) bool
func (*PullRequest) HasLabel ¶
func (p *PullRequest) HasLabel(name string) bool
func (*PullRequest) LabelsString ¶
func (p *PullRequest) LabelsString() string
func (*PullRequest) MergeableString ¶
func (p *PullRequest) MergeableString() string
func (*PullRequest) PullsString ¶
func (p *PullRequest) PullsString() string
func (*PullRequest) TrimmedTitle ¶
func (p *PullRequest) TrimmedTitle() string
type Repository ¶
type Repository struct {
NameWithOwner string `json:"nameWithOwner"`
}
type StatusCheckRollup ¶
type StatusCheckRollup struct { State string `json:"state"` Contexts StatusContext `json:"contexts"` }
type StatusContext ¶
type StatusContext struct {
Nodes []Context `json:"nodes"`
}
Click to show internal directories.
Click to hide internal directories.