From 85ca452a2e803979d210864a6771025fe18b70bc Mon Sep 17 00:00:00 2001 From: Sascha Grunert Date: Mon, 19 Apr 2021 12:41:15 +0200 Subject: [PATCH] Add notice if release note gets excluded because of mismatched authors If an author does not match then we now log the reason for a better debug ability. Signed-off-by: Sascha Grunert --- pkg/notes/notes.go | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/pkg/notes/notes.go b/pkg/notes/notes.go index 2c5a97bf937..dd6e7131dda 100644 --- a/pkg/notes/notes.go +++ b/pkg/notes/notes.go @@ -313,6 +313,10 @@ func (g *Gatherer) ListReleaseNotes() (*ReleaseNotes, error) { for _, result := range results { if g.options.RequiredAuthor != "" { if result.commit.GetAuthor().GetLogin() != g.options.RequiredAuthor { + logrus.Infof( + "Skipping release note for PR #%d because required author %q does not match with %q", + result.pullRequest.GetNumber(), g.options.RequiredAuthor, result.commit.GetAuthor().GetLogin(), + ) continue } }