Documentation ¶
Index ¶
- Constants
- type Requirement
- func Always() Requirement
- func And(requirements ...Requirement) Requirement
- func Assignee(gh *client.GitHub, user string) Requirement
- func Author(user string) Requirement
- func AuthorInTeam(gh *client.GitHub, team string) Requirement
- func Label(gh *client.GitHub, name string) Requirement
- func MaintainerCanModify() Requirement
- func Never() Requirement
- func Not(req Requirement) Requirement
- func Or(requirements ...Requirement) Requirement
- func ReviewByTeamMembers(gh *client.GitHub, team string, count uint) Requirement
- func ReviewByUser(gh *client.GitHub, user string) Requirement
- func UpToDateWith(gh *client.GitHub, base string) Requirement
Constants ¶
View Source
const PR_BASE = "PR_BASE"
Pass this to UpToDateWith constructor to check the PR head branch against its base branch.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Requirement ¶
type Requirement interface { // Check if the Requirement is satisfied and add the detail // to the tree passed as a parameter. IsSatisfied(pr *github.PullRequest, details treeprint.Tree) bool }
func Always ¶
func Always() Requirement
func And ¶
func And(requirements ...Requirement) Requirement
func Author ¶
func Author(user string) Requirement
func AuthorInTeam ¶
func AuthorInTeam(gh *client.GitHub, team string) Requirement
func MaintainerCanModify ¶
func MaintainerCanModify() Requirement
func Never ¶
func Never() Requirement
func Not ¶
func Not(req Requirement) Requirement
func Or ¶
func Or(requirements ...Requirement) Requirement
func ReviewByTeamMembers ¶
func ReviewByTeamMembers(gh *client.GitHub, team string, count uint) Requirement
func ReviewByUser ¶
func ReviewByUser(gh *client.GitHub, user string) Requirement
func UpToDateWith ¶
func UpToDateWith(gh *client.GitHub, base string) Requirement
Click to show internal directories.
Click to hide internal directories.