Skip to content

Commit 529905e

Browse files
Merge pull request #1184 from Nordix/tuomo/improve-release-notes-1.3
📖 improve release notes tool
2 parents 7b89f7c + 6c6b935 commit 529905e

File tree

1 file changed

+9
-3
lines changed

1 file changed

+9
-3
lines changed

hack/tools/release/notes.go

Lines changed: 9 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -42,6 +42,7 @@ const (
4242
warning = ":warning: Breaking Changes"
4343
other = ":seedling: Others"
4444
unknown = ":question: Sort these by hand"
45+
superseded = ":recycle: Superseded or Reverted"
4546
)
4647

4748
var (
@@ -52,6 +53,7 @@ var (
5253
documentation,
5354
other,
5455
unknown,
56+
superseded,
5557
}
5658

5759
fromTag = flag.String("from", "", "The tag or commit to start from.")
@@ -104,6 +106,7 @@ func run() int {
104106
warning: {},
105107
other: {},
106108
unknown: {},
109+
superseded: {},
107110
}
108111
out, err := cmd.CombinedOutput()
109112
if err != nil {
@@ -171,6 +174,9 @@ func run() int {
171174
merges[key] = append(merges[key], formatMerge(body, prNumber))
172175
}
173176

177+
// Add empty superseded section
178+
merges[superseded] = append(merges[superseded], "- `<insert superseded bumps and reverts here>`")
179+
174180
// TODO Turn this into a link (requires knowing the project name + organization)
175181
fmt.Printf("Changes since %v\n---\n", lastTag)
176182

@@ -186,9 +192,9 @@ func run() int {
186192
}
187193

188194
fmt.Printf("The image for this release is: %v\n", latestTag)
189-
fmt.Printf("Ironic release is capm3-%v\n", latestTag)
190-
fmt.Printf("Mariadb release is capm3-%v\n", latestTag)
191-
fmt.Println("_Thanks to all our contributors!_ 😊")
195+
fmt.Printf("Ironic image tag is capm3-%v\n", latestTag)
196+
fmt.Printf("Mariadb image tag is capm3-%v\n", latestTag)
197+
fmt.Println("\n_Thanks to all our contributors!_ 😊")
192198

193199
return 0
194200
}

0 commit comments

Comments
 (0)