Documentation ¶
Overview ¶
Package pullrequest checks pull requests for specified labels
Index ¶
- type Labels
- func (l Labels) HasAllOf(specified []string, prefixMode bool) (bool, string)
- func (l Labels) HasAnyOf(specified []string, prefixMode bool) (bool, string)
- func (l Labels) HasExactlyOneOf(specified []string, prefixMode bool) (bool, string)
- func (l Labels) HasNoneOf(specified []string, prefixMode bool) (bool, string)
- type PullRequest
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Labels ¶ added in v0.5.3
type Labels []string
Labels represents a collection of GitHub labels, e.g. all the labels in a pull request
func (Labels) HasAllOf ¶ added in v0.8.0
HasAllOf indicates whether the labels contain all of the specified labels, along with a report describing the result.
func (Labels) HasAnyOf ¶ added in v0.9.0
HasAnyOf indicates whether the labels contain any of the specified labels, along with a report describing the result.
func (Labels) HasExactlyOneOf ¶ added in v0.5.3
HasExactlyOneOf indicates whether the labels contain exactly one of the specified labels, along with a report describing the result.
type PullRequest ¶ added in v0.5.3
type PullRequest struct { Labels Labels // contains filtered or unexported fields }
PullRequest encapsulates a GitHub Pull Request
Click to show internal directories.
Click to hide internal directories.