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 AuthorAssociationIs(association string) Condition
- func AuthorInTeam(gh *client.GitHub, team string) Condition
- func BaseBranch(pattern string) Condition
- func CreatedFromFork() 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 AuthorAssociationIs ¶
AuthorAssociationIs asserts that the author of the PR has the given value for the GitHub "author association" field, on the PR.
See https://docs.github.com/en/graphql/reference/enums#commentauthorassociation for a list of possible values and descriptions.
func BaseBranch ¶
func CreatedFromFork ¶
func CreatedFromFork() Condition
func HeadBranch ¶
Click to show internal directories.
Click to hide internal directories.