Documentation ¶
Index ¶
- Constants
- Variables
- func GetEnvVar(name, defaultValue string) string
- type Client
- type GitHub
- type Label
- type Plugin
- type PullRequest
- type PullRequestChecker
- func (prc *PullRequestChecker) CheckPRChecklist() *PullRequestChecker
- func (prc *PullRequestChecker) CheckPRLabels() *PullRequestChecker
- func (prc *PullRequestChecker) CheckPRTitlePrefixes() *PullRequestChecker
- func (prc *PullRequestChecker) CheckPRTitleRegexep() *PullRequestChecker
- func (prc *PullRequestChecker) Report()
- type Settings
- type State
- type Step
Constants ¶
View Source
const ( PrefixStepID = "prefix" PrefixSkipMsg = "No prefixes to check" PrefixErrMsg = "PR title does not have any required prefix (%s)" PrefixSuccesMsg = "Prefixes check passed" LabelsStepID = "labels" LabelsSkipMsg = "No labels to check" LabelsErrMsg = "PR does not have any required labels" LabelsSuccesMsg = "Labels check passed" RegexpStepID = "regexp" RegexpSkipMsg = "No regexep to check" RegexpErrMsg = "PR title does not match specified regular expression" RegexpSuccesMsg = "Regular expression check passed" ChecklistStepID = "checklist" ChecklistSkipMsg = "Checklist checks disabled" ChecklistErrMsg = "Found %d unchecked checklist items" ChecklistSuccesMsg = "Checklist check passed" )
Variables ¶
View Source
var BaseURL = "https://api.github.com"
Functions ¶
Types ¶
type Client ¶
func (*Client) GetPullRequest ¶
func (c *Client) GetPullRequest() (PullRequest, error)
type GitHub ¶
type GitHub interface {
GetPullRequest() (PullRequest, error)
}
type Plugin ¶
type Plugin interface { Report() CheckPrTitlePrefixes() *PullRequestChecker CheckPRChecklist() *PullRequestChecker CheckPRLabels() *PullRequestChecker CheckPRTitleRegexep() *PullRequestChecker }
type PullRequest ¶
type PullRequestChecker ¶
type PullRequestChecker struct {
// contains filtered or unexported fields
}
func (*PullRequestChecker) CheckPRChecklist ¶
func (prc *PullRequestChecker) CheckPRChecklist() *PullRequestChecker
func (*PullRequestChecker) CheckPRLabels ¶
func (prc *PullRequestChecker) CheckPRLabels() *PullRequestChecker
func (*PullRequestChecker) CheckPRTitlePrefixes ¶
func (prc *PullRequestChecker) CheckPRTitlePrefixes() *PullRequestChecker
func (*PullRequestChecker) CheckPRTitleRegexep ¶
func (prc *PullRequestChecker) CheckPRTitleRegexep() *PullRequestChecker
func (*PullRequestChecker) Report ¶
func (prc *PullRequestChecker) Report()
Click to show internal directories.
Click to hide internal directories.