diff --git a/.gitignore b/.gitignore index ab95a3fdf8..95189ff420 100644 --- a/.gitignore +++ b/.gitignore @@ -37,3 +37,6 @@ ironic-deployment/overlays/temp # Development containers (https://containers.dev/) .devcontainer + +# release-notes +/releasenotes diff --git a/hack/tools/release_notes.go b/hack/tools/release_notes.go index 1b05b0364a..628bd4c699 100644 --- a/hack/tools/release_notes.go +++ b/hack/tools/release_notes.go @@ -42,6 +42,7 @@ const ( warning = ":warning: Breaking Changes" other = ":seedling: Others" unknown = ":question: Sort these by hand" + superseded = ":arrow_up: Superseded or Reverted" ) var ( @@ -52,6 +53,7 @@ var ( documentation, other, unknown, + superseded, } fromTag = flag.String("from", "", "The tag or commit to start from.") @@ -104,6 +106,7 @@ func run() int { warning: {}, other: {}, unknown: {}, + superseded: {}, } out, err := cmd.CombinedOutput() if err != nil { @@ -171,6 +174,9 @@ func run() int { merges[key] = append(merges[key], formatMerge(body, prNumber)) } + // Add empty superseded section + merges[superseded] = append(merges[superseded], "- ``") + // TODO Turn this into a link (requires knowing the project name + organization) fmt.Printf("Changes since %v\n---\n", lastTag) @@ -186,7 +192,7 @@ func run() int { } fmt.Printf("The container image for this release is: %v\n", latestTag) - fmt.Println("Thanks to all our contributors! 😊") + fmt.Println("\nThanks to all our contributors! 😊") return 0 }