requirements

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

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 Assignee

func Assignee(gh *client.GitHub, user string) Requirement

func Author

func Author(user string) Requirement

func AuthorInTeam

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

func Label

func Label(gh *client.GitHub, name 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

Jump to

Keyboard shortcuts

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