Skip to content

Commit

Permalink
Merge pull request #9614 from g-gaston/capitalize-extra-areas
Browse files Browse the repository at this point in the history
🌱 Capitalize area prefix in release notes by default
  • Loading branch information
k8s-ci-robot authored Oct 25, 2023
2 parents 4888ac4 + 7d8c6db commit 45d39d6
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions hack/tools/release/notes.go
Original file line number Diff line number Diff line change
Expand Up @@ -102,6 +102,8 @@ var (
"runtime-sdk": "Runtime SDK",
"ci": "CI",
"machinehealthcheck": "MachineHealthCheck",
"clusterctl": "clusterctl", // Preserve lowercase
"util": "util", // Preserve lowercase
}

releaseBackportMarker = regexp.MustCompile(`(?m)^\[release-\d\.\d\]\s*`)
Expand Down Expand Up @@ -180,6 +182,8 @@ func getAreaLabel(merge string) (string, error) {
if area, ok := trimAreaLabel(label.Name); ok {
if userFriendlyArea, ok := userFriendlyAreas[area]; ok {
area = userFriendlyArea
} else {
area = capitalize(area)
}

areaLabels = append(areaLabels, area)
Expand Down

0 comments on commit 45d39d6

Please sign in to comment.