mirror of
https://github.com/macports/mpbot-github.git
synced 2026-07-13 03:18:39 -07:00
Find CVE Identifiers in PR title too
This commit is contained in:
@@ -163,7 +163,7 @@ func (receiver *Receiver) handlePullRequest(body []byte) {
|
||||
if strings.Contains(strings.ToLower(*event.PullRequest.Title), ": update to") {
|
||||
typeLabels = appendIfUnique(typeLabels, "type: update")
|
||||
}
|
||||
if cveRegexp.FindString(*event.PullRequest.Body) != "" {
|
||||
if cveRegexp.FindString(*event.PullRequest.Title) != "" || cveRegexp.FindString(*event.PullRequest.Body) != "" {
|
||||
typeLabels = appendIfUnique(typeLabels, "type: security fix")
|
||||
}
|
||||
typesFromBody := []string{"bugfix", "enhancement", "security fix"}
|
||||
|
||||
Reference in New Issue
Block a user