Skip to content

Commit

Permalink
Fix check severity Bug (#65)
Browse files Browse the repository at this point in the history
* feature: finish check bug template(60%) and test(30%)

lack check version partion,unit test and total test

* feature: finish check-template 85% and 30% test,add extractor
  • Loading branch information
CadmusJiang authored Oct 28, 2020
1 parent 7455d8a commit 1631942
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion pkg/providers/check-template/issue_event.go
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,7 @@ var (
typeBug = "type/bug"
componentPrefix = "component/"
sigPrefix = "sig/"
severityPrefix = "severity/"
labelsFilter = []string{"type/duplicate", "type/wontfix", "status/won't-fix", "status/can't-reproduce", "need-more-info"}
)

Expand Down Expand Up @@ -167,7 +168,7 @@ func (c *Check) getMissingLabels(labels []*github.Label) []string {
if strings.HasPrefix(*labels[i].Name, componentPrefix) || strings.HasPrefix(*labels[i].Name, sigPrefix) {
componentOrSig = true
}
if *labels[i].Name == "severity" {
if strings.HasPrefix(*labels[i].Name, severityPrefix) {
severity = true
}
}
Expand Down

0 comments on commit 1631942

Please sign in to comment.