Skip to content

Commit

Permalink
Merge pull request #8928 from g-gaston/release-notes-improvements
Browse files Browse the repository at this point in the history
🌱 Improve release notes output
  • Loading branch information
k8s-ci-robot authored Jul 5, 2023
2 parents 2091c44 + d6ffa49 commit dacc986
Showing 1 changed file with 30 additions and 8 deletions.
38 changes: 30 additions & 8 deletions hack/tools/release/notes.go
Original file line number Diff line number Diff line change
Expand Up @@ -72,13 +72,27 @@ var (
tagRegex = regexp.MustCompile(`^\[release-[\w-\.]*\]`)

userFriendlyAreas = map[string]string{
"e2e-testing": "e2e",
"provider/control-plane-kubeadm": "KCP",
"provider/infrastructure-docker": "CAPD",
"dependency": "Dependency",
"devtools": "Devtools",
"machine": "Machine",
"api": "API",
"e2e-testing": "e2e",
"provider/control-plane-kubeadm": "KCP",
"provider/infrastructure-docker": "CAPD",
"dependency": "Dependency",
"devtools": "Devtools",
"machine": "Machine",
"api": "API",
"machinepool": "MachinePool",
"clustercachetracker": "ClusterCacheTracker",
"clusterclass": "ClusterClass",
"testing": "Testing",
"release": "Release",
"machineset": "MachineSet",
"clusterresourceset": "ClusterResourceSet",
"machinedeployment": "MachineDeployment",
"ipam": "IPAM",
"provider/bootstrap-kubeadm": "CAPBK",
"provider/infrastructure-in-memory": "CAPIM",
"provider/core": "Core",
"runtime-sdk": "Runtime SDK",
"ci": "CI",
}

releaseBackportMarker = regexp.MustCompile(`(?m)^\[release-\d\.\d\]\s*`)
Expand Down Expand Up @@ -288,7 +302,15 @@ func run() int {
}

// TODO Turn this into a link (requires knowing the project name + organization)
fmt.Printf("Changes since %v\n---\n", commitRange)
fmt.Print(`## 👌 Kubernetes version support
- Management Cluster: v1.**X**.x -> v1.**X**.x
- Workload Cluster: v1.**X**.x -> v1.**X**.x
[More information about version support can be found here](https://cluster-api.sigs.k8s.io/reference/versions.html)
`)
fmt.Printf("## Changes since %v\n---\n", commitRange)

fmt.Printf("## :chart_with_upwards_trend: Overview\n")
if count := len(commits); count > 0 {
Expand Down

0 comments on commit dacc986

Please sign in to comment.