Skip to content

Commit

Permalink
Generate warning when release notes can not be generated
Browse files Browse the repository at this point in the history
Signed-off-by: killianmuldoon <kmuldoon@vmware.com>
  • Loading branch information
killianmuldoon committed Aug 10, 2023
1 parent 03ab8cd commit 49dc5b6
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions hack/tools/release/notes.go
Original file line number Diff line number Diff line change
@@ -1,6 +1,3 @@
//go:build tools
// +build tools

/*
Copyright 2019 The Kubernetes Authors.
Expand Down Expand Up @@ -63,7 +60,7 @@ var (
unknown,
}

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

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

Expand Down Expand Up @@ -447,6 +444,9 @@ func modifyEntryTitle(title string, prefixes []string) string {
// generateReleaseNoteEntry processes a commit into a PR line item for the release notes.
func generateReleaseNoteEntry(c *commit) (*releaseNoteEntry, error) {
entry := &releaseNoteEntry{}
if c.body == "" {
c.body = "ERROR: BODY MISSING. FIX MANUALLY"
}
entry.title = trimTitle(c.body)
var fork string

Expand Down

0 comments on commit 49dc5b6

Please sign in to comment.