conditions

package
v0.0.0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Dec 3, 2024 License: UNKNOWN not legal advice Imports: 0 Imported by: 0

Documentation

Index

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 Always

func Always() Condition

func And

func And(conditions ...Condition) Condition

func Assignee

func Assignee(user string) Condition

func AssigneeInTeam

func AssigneeInTeam(gh *client.GitHub, team string) Condition

func Author

func Author(user string) Condition

func AuthorInTeam

func AuthorInTeam(gh *client.GitHub, team string) Condition

func BaseBranch

func BaseBranch(pattern string) Condition

func Draft

func Draft() Condition

func FileChanged

func FileChanged(gh *client.GitHub, pattern string) Condition

func HeadBranch

func HeadBranch(pattern string) Condition

func Label

func Label(pattern string) Condition

func Never

func Never() Condition

func Not

func Not(cond Condition) Condition

func Or

func Or(conditions ...Condition) Condition

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL