Skip to content

Commit

Permalink
return nothing if there are no release notes
Browse files Browse the repository at this point in the history
  • Loading branch information
alicenstar committed Apr 23, 2024
1 parent f038de3 commit 11a790e
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 11a790e

Please sign in to comment.