From 9ad0a9c1e273bd7ddb7d9f73194a74bbd3cd9ee6 Mon Sep 17 00:00:00 2001 From: Michi Mutsuzaki Date: Thu, 21 Nov 2024 00:15:16 +0000 Subject: [PATCH] Include repo name in backport PR entries I forgot to handle this case in #198. Fixes: f56f58f7b409 ("Include repo name in release note entries") Signed-off-by: Michi Mutsuzaki --- cmd/changelog/generate.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/cmd/changelog/generate.go b/cmd/changelog/generate.go index 803c8a8..9a62d0d 100644 --- a/cmd/changelog/generate.go +++ b/cmd/changelog/generate.go @@ -310,7 +310,7 @@ func (cl *ChangeLog) prReleaseNote(pr types.PullRequest, prNumber int, upstreamP text := fmt.Sprintf("* %s", pr.ReleaseNote) if !cl.ExcludePRReferences { if upstreamPRNumber != nil { - text += fmt.Sprintf(" (Backport PR #%d, Upstream PR #%d, @%s)", prNumber, *upstreamPRNumber, pr.AuthorName) + text += fmt.Sprintf(" (Backport PR %s#%d, Upstream PR %s#%d, @%s)", cl.RepoName, prNumber, cl.RepoName, *upstreamPRNumber, pr.AuthorName) } else { text += fmt.Sprintf(" (%s#%d, @%s)", cl.RepoName, prNumber, pr.AuthorName) }