Documentation
¶
Index ¶
- Variables
- func ComputeLabels(resources []string, regexpLabels []RegexpLabel) []string
- func EnsureLabelsWithColor(repository string, labelNames []string, color string) error
- func ExtractAffectedResources(body string) []string
- func GetIssues(repository, since string) ([]*github.Issue, error)
- func UpdateIssues(repository string, issueUpdates []IssueUpdate, dryRun bool) error
- type IssueUpdate
- type Label
- type LabelChange
- type LabelData
- type RegexpLabel
Constants ¶
This section is empty.
Variables ¶
View Source
var ( //go:embed enrolled_teams.yml EnrolledTeamsYaml []byte )
Functions ¶
func ComputeLabels ¶
func ComputeLabels(resources []string, regexpLabels []RegexpLabel) []string
func EnsureLabelsWithColor ¶
EnsureLabelsWithColor applies the computed changes using the GitHub API
func UpdateIssues ¶
func UpdateIssues(repository string, issueUpdates []IssueUpdate, dryRun bool) error
Types ¶
type IssueUpdate ¶
func ComputeIssueUpdates ¶
func ComputeIssueUpdates(issues []*github.Issue, regexpLabels []RegexpLabel) []IssueUpdate
ComputeIssueUpdates remains the same as it doesn't interact with GitHub API
type LabelChange ¶
func ComputeLabelChanges ¶
func ComputeLabelChanges(existingLabels []*github.Label, desiredLabels []string, desiredColor string) []LabelChange
ComputeLabelChanges determines which labels need to be created or updated
type RegexpLabel ¶
func BuildRegexLabels ¶
func BuildRegexLabels(teamsYaml []byte) ([]RegexpLabel, error)
Click to show internal directories.
Click to hide internal directories.