Skip to content

Commit 92f1e9a

Browse files
Generate warning when release notes can not be generated
Signed-off-by: killianmuldoon <[email protected]>
1 parent 03ab8cd commit 92f1e9a

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

hack/tools/release/notes.go

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -63,7 +63,7 @@ var (
6363
unknown,
6464
}
6565

66-
repo = flag.String("repository", "kubernetes-sigs/cluster-api", "The tag or commit to start from.")
66+
repo = flag.String("repository", "kubernetes-sigs/cluster-api", "The repo to run the tool from.")
6767

6868
fromTag = flag.String("from", "", "The tag or commit to start from.")
6969

@@ -447,6 +447,9 @@ func modifyEntryTitle(title string, prefixes []string) string {
447447
// generateReleaseNoteEntry processes a commit into a PR line item for the release notes.
448448
func generateReleaseNoteEntry(c *commit) (*releaseNoteEntry, error) {
449449
entry := &releaseNoteEntry{}
450+
if c.body == "" {
451+
c.body = "ERROR: BODY MISSING. FIX MANUALLY"
452+
}
450453
entry.title = trimTitle(c.body)
451454
var fork string
452455

0 commit comments

Comments
 (0)