From 8a4d95371315476713b5bbc28a0d485c257a6e5e Mon Sep 17 00:00:00 2001 From: Florian Beisel Date: Mon, 15 Jan 2024 11:13:19 +0100 Subject: [PATCH] more debug prints --- src/changelog.go | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/changelog.go b/src/changelog.go index 3be30b8..ca9b796 100644 --- a/src/changelog.go +++ b/src/changelog.go @@ -30,9 +30,12 @@ func GenerateChangelog(c *gitea.Client, owner string, repo string, lastRelease * for _, pr := range prs { if pr.HasMerged { + githubactions.Warningf("Analyzing PR: '%s'", pr.Title) if lastRelease == nil || (lastRelease != nil && pr.Merged.After(lastRelease.CreatedAt)) { + githubactions.Warningf("PR is in the valid timeframe since last release: '%s'", pr.Title) addedToChangelog := false for _, prLabel := range pr.Labels { + githubactions.Warningf("Analyzing Label of PR (%d): '%s'", pr.ID, prLabel.Name) categoryTitle, ok := validLabels[prLabel.Name] if ok { changelogByLabels[categoryTitle] = append(changelogByLabels[categoryTitle], pr)