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 ¶
type Labels []string
Labels represents a collection of GitHub labels, e.g. all the labels in a pull request
func (Labels) HasAllOf ¶
HasAllOf indicates whether the labels contain all of the specified labels, along with a report describing the result.
func (Labels) HasAnyOf ¶
HasAnyOf indicates whether the labels contain any of the specified labels, along with a report describing the result.
func (Labels) HasExactlyOneOf ¶
HasExactlyOneOf indicates whether the labels contain exactly one of the specified labels, along with a report describing the result.
type PullRequest ¶
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.