Skip to content

Commit

Permalink
Include repo name in backport PR entries
Browse files Browse the repository at this point in the history
I forgot to handle this case in #198.

Fixes: f56f58f ("Include repo name in release note entries")

Signed-off-by: Michi Mutsuzaki <[email protected]>
  • Loading branch information
michi-covalent committed Nov 21, 2024
1 parent 5f044aa commit 9ad0a9c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion cmd/changelog/generate.go
Original file line number Diff line number Diff line change
Expand Up @@ -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)
}
Expand Down

0 comments on commit 9ad0a9c

Please sign in to comment.