1
0
mirror of https://github.com/ChristianSch/gitea-release-drafter.git synced 2025-06-15 16:48:15 +00:00

Use Index attribute instead of internal ID

This commit is contained in:
Râu Cao 2023-03-28 17:05:58 +02:00
parent efdf01c071
commit de9367738b
Signed by: raucao
GPG Key ID: 15E65F399D084BA9

View File

@ -65,7 +65,7 @@ func updateOrCreateDraftRelease(a *Action, cfg *config.RepoConfig) (*gitea.Relea
fmt.Fprintf(&b, "## %s\n\n", strings.Title(label))
for _, pr := range prs {
fmt.Fprintf(&b, "* %s (#%d) @%s\n", pr.Title, pr.ID, pr.Poster.UserName)
fmt.Fprintf(&b, "* %s (#%d) @%s\n", pr.Title, pr.Index, pr.Poster.UserName)
}
b.WriteString("\n")