Documentation
¶
Index ¶
- Constants
- func DetectAreas(ctx context.Context, client *github.Client, owner, repositoryName string, ...) ([]string, error)
- func GetCurrentSize(issueLabels []*github.Label) string
- func GetSizeLabel(ctx context.Context, client *github.Client, owner, repositoryName string, ...) (string, error)
- func HasLabel(issueLabels []*github.Label, label string) bool
- func HasStatus(issueLabels []*github.Label) bool
- type Changes
- type Limit
- type Limits
- type Rule
Constants ¶
View Source
const ( WIP = "WIP" StatusPrefix = "status/" StatusNeedsTriage = StatusPrefix + "0-needs-triage" StatusNeedsDesignReview = StatusPrefix + "1-needs-design-review" StatusNeedsReview = StatusPrefix + "2-needs-review" StatusNeedsMerge = StatusPrefix + "3-needs-merge" )
status labels.
View Source
const ( ContributorPrefix = "contributor/" ContributorWaitingForCorrections = ContributorPrefix + "waiting-for-corrections" ContributorNeedMoreInformation = ContributorPrefix + "need-more-information" ContributorWaitingForDocumentation = ContributorPrefix + "waiting-for-documentation" ContributorWaitingForFeedback = ContributorPrefix + "waiting-for-feedback" )
contributor labels.
View Source
const ( SizeLabelPrefix = "size/" Small = "S" Medium = "M" Large = "L" )
size labels.
Variables ¶
This section is empty.
Functions ¶
func DetectAreas ¶
func DetectAreas(ctx context.Context, client *github.Client, owner, repositoryName string, prNumber int, rules []Rule) ([]string, error)
DetectAreas for a Pull Request.
func GetCurrentSize ¶
GetCurrentSize gets the size of a Pull Request.
func GetSizeLabel ¶
func GetSizeLabel(ctx context.Context, client *github.Client, owner, repositoryName string, prNumber int, limits Limits) (string, error)
GetSizeLabel evaluates PR size (exclude vendor files).
Types ¶
Click to show internal directories.
Click to hide internal directories.