Documentation
¶
Index ¶
- func CheckAssignee(log *logrus.Logger, pullRequest *github.PullRequest) error
- func CheckDescription(log *logrus.Logger, pullRequest *github.PullRequest) error
- func CheckLabels(log *logrus.Logger, pull PullRequestLabels, prefixes []string, any bool) error
- func CheckTitle(log *logrus.Logger, pull PullRequestTitle, minimum int) error
- func RunAutomations(logger *logrus.Logger, pull *github.PullRequest) error
- func RunChecks(logger *logrus.Logger, pull *github.PullRequest, options *Options) error
- type Options
- type PullRequestLabels
- type PullRequestTitle
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func CheckAssignee ¶
func CheckAssignee(log *logrus.Logger, pullRequest *github.PullRequest) error
func CheckDescription ¶
func CheckDescription(log *logrus.Logger, pullRequest *github.PullRequest) error
func CheckLabels ¶
Check the labels of the pull request to validate that the prefixes requested have been attached, and return an error if it is not
func CheckTitle ¶
func CheckTitle(log *logrus.Logger, pull PullRequestTitle, minimum int) error
Check the title of the pull request to validate that it is at least the minimum length required, and return an error if it is not
func RunAutomations ¶ added in v1.1.0
func RunAutomations(logger *logrus.Logger, pull *github.PullRequest) error
Types ¶
type PullRequestLabels ¶ added in v1.1.0
Define an Interface which maps to the GetLabels function on the type so that we can simplify the requirements of the value passed and improve testability
type PullRequestTitle ¶ added in v1.1.0
type PullRequestTitle interface {
GetTitle() string
}
Define an Interface which maps to the GetTitle function on the type so that we can simplify the requirements of the value passed and improve testability
Click to show internal directories.
Click to hide internal directories.