Documentation ¶
Index ¶
- type Condition
- func Always() Condition
- func And(conditions ...Condition) Condition
- func Assignee(user string) Condition
- func AssigneeInTeam(gh *client.GitHub, team string) Condition
- func Author(user string) Condition
- func AuthorInTeam(gh *client.GitHub, team string) Condition
- func BaseBranch(pattern string) Condition
- func Draft() Condition
- func FileChanged(gh *client.GitHub, pattern string) Condition
- func HeadBranch(pattern string) Condition
- func Label(pattern string) Condition
- func Never() Condition
- func Not(cond Condition) Condition
- func Or(conditions ...Condition) Condition
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Condition ¶
type Condition interface { // Check if the Condition is met and add the details // to the tree passed as a parameter. IsMet(pr *github.PullRequest, details treeprint.Tree) bool }
func BaseBranch ¶
func HeadBranch ¶
Click to show internal directories.
Click to hide internal directories.