Use Index attribute instead of internal ID

main
Râu Cao 2023-03-28 17:05:58 +02:00
parent efdf01c071
commit de9367738b
No known key found for this signature in database
GPG Key ID: 15E65F399D084BA9
1 changed files with 1 additions and 1 deletions

View File

@ -65,7 +65,7 @@ func updateOrCreateDraftRelease(a *Action, cfg *config.RepoConfig) (*gitea.Relea
fmt.Fprintf(&b, "## %s\n\n", strings.Title(label)) fmt.Fprintf(&b, "## %s\n\n", strings.Title(label))
for _, pr := range prs { 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") b.WriteString("\n")