This commit is contained in:
Ben Vidulich 2026-02-05 02:46:43 +00:00 committed by GitHub
commit b5cc7b7ff1
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -279,7 +279,7 @@ func (f *Forgejo) CreatePullRequest(ctx context.Context, pr *releasepr.ReleasePu
}
// TODO: String ID?
pr.ID = int(fPR.ID)
pr.ID = int(fPR.Index)
err = f.SetPullRequestLabels(ctx, pr, []releasepr.Label{}, pr.Labels)
if err != nil {
@ -452,7 +452,7 @@ func all[T any](f func(listOptions forgejo.ListOptions) ([]T, *forgejo.Response,
func forgejoPRToPullRequest(pr *forgejo.PullRequest) *git.PullRequest {
return &git.PullRequest{
ID: int(pr.ID),
ID: int(pr.Index),
Title: pr.Title,
Description: pr.Body,
}