mirror of
https://github.com/apricote/releaser-pleaser.git
synced 2026-02-07 10:17:02 +00:00
fix(forgejo): locate PRs by index
This commit is contained in:
parent
944b70cee9
commit
4de125c44b
1 changed files with 2 additions and 2 deletions
|
|
@ -279,7 +279,7 @@ func (f *Forgejo) CreatePullRequest(ctx context.Context, pr *releasepr.ReleasePu
|
||||||
}
|
}
|
||||||
|
|
||||||
// TODO: String ID?
|
// TODO: String ID?
|
||||||
pr.ID = int(fPR.ID)
|
pr.ID = int(fPR.Index)
|
||||||
|
|
||||||
err = f.SetPullRequestLabels(ctx, pr, []releasepr.Label{}, pr.Labels)
|
err = f.SetPullRequestLabels(ctx, pr, []releasepr.Label{}, pr.Labels)
|
||||||
if err != nil {
|
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 {
|
func forgejoPRToPullRequest(pr *forgejo.PullRequest) *git.PullRequest {
|
||||||
return &git.PullRequest{
|
return &git.PullRequest{
|
||||||
ID: int(pr.ID),
|
ID: int(pr.Index),
|
||||||
Title: pr.Title,
|
Title: pr.Title,
|
||||||
Description: pr.Body,
|
Description: pr.Body,
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue