Skip to content

Commit

Permalink
Merge pull request #14 from replicatedhq/star/sc-102398/dont-create-e…
Browse files Browse the repository at this point in the history
…mpty-release-notes

return nothing if there are no release notes
  • Loading branch information
divolgin authored Apr 24, 2024
2 parents f038de3 + 11a790e commit 4e422c6
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions main.go
Original file line number Diff line number Diff line change
Expand Up @@ -109,6 +109,12 @@ func main() {
}

notes, err := getAllReleaseNotes(ctx, client, owner, repo, base, head, includePrLinks, typeLabelFlags)

// if the release notes do not contain any features, improvements, or bugs, do not submit release notes
if len(notes.Features) == 0 && len(notes.Improvements) == 0 && len(notes.Bugs) == 0 {
return
}

if err != nil {
log.Fatalf("Failed to get release notes: %v", err)
}
Expand Down

0 comments on commit 4e422c6

Please sign in to comment.