Skip to content

Commit 1631942

Browse files
authored
Fix check severity Bug (#65)
* 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
1 parent 7455d8a commit 1631942

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

pkg/providers/check-template/issue_event.go

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,6 +23,7 @@ var (
2323
typeBug = "type/bug"
2424
componentPrefix = "component/"
2525
sigPrefix = "sig/"
26+
severityPrefix = "severity/"
2627
labelsFilter = []string{"type/duplicate", "type/wontfix", "status/won't-fix", "status/can't-reproduce", "need-more-info"}
2728
)
2829

@@ -167,7 +168,7 @@ func (c *Check) getMissingLabels(labels []*github.Label) []string {
167168
if strings.HasPrefix(*labels[i].Name, componentPrefix) || strings.HasPrefix(*labels[i].Name, sigPrefix) {
168169
componentOrSig = true
169170
}
170-
if *labels[i].Name == "severity" {
171+
if strings.HasPrefix(*labels[i].Name, severityPrefix) {
171172
severity = true
172173
}
173174
}

0 commit comments

Comments
 (0)