From 11a790e2913b5236ee451bdff3a530e7227fa964 Mon Sep 17 00:00:00 2001 From: Star Richardson <67430892+alicenstar@users.noreply.github.com> Date: Tue, 23 Apr 2024 16:43:40 -0700 Subject: [PATCH] return nothing if there are no release notes --- main.go | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/main.go b/main.go index ef7e70e..5194a23 100644 --- a/main.go +++ b/main.go @@ -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) }