more debug prints

This commit is contained in:
Florian Beisel 2024-01-15 11:13:19 +01:00
parent 48785100dc
commit 8a4d953713
Signed by: florian
GPG Key ID: 79ECA2E54996FF4D
1 changed files with 3 additions and 0 deletions

View File

@ -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)