Documentation ¶
Index ¶
- Variables
- func ComputeLabels(resources []string, regexpLabels []RegexpLabel) []string
- func ExtractAffectedResources(body string) []string
- func UpdateIssues(repository string, issueUpdates []IssueUpdate, dryRun bool)
- type ErrorResponse
- type Issue
- type IssueUpdate
- type IssueUpdateBody
- type Label
- 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 UpdateIssues ¶
func UpdateIssues(repository string, issueUpdates []IssueUpdate, dryRun bool)
Types ¶
type ErrorResponse ¶
type ErrorResponse struct {
Message string
}
type Issue ¶
type IssueUpdate ¶
func ComputeIssueUpdates ¶
func ComputeIssueUpdates(issues []Issue, regexpLabels []RegexpLabel) []IssueUpdate
type IssueUpdateBody ¶
type IssueUpdateBody struct {
Labels []string `json:"labels"`
}
type RegexpLabel ¶
func BuildRegexLabels ¶
func BuildRegexLabels(teamsYaml []byte) ([]RegexpLabel, error)
Click to show internal directories.
Click to hide internal directories.