mirror of
https://github.com/woodpecker-ci/woodpecker.git
synced 2026-03-16 01:19:02 +01:00
Change PullRequest Index to ForgeRemoteID / string type (#2823)
Co-authored-by: Patrick Schratz <patrick.schratz@gmail.com> Co-authored-by: qwerty287 <80460567+qwerty287@users.noreply.github.com> Co-authored-by: Anbraten <anton@ju60.de>
This commit is contained in:
committed by
GitHub
parent
418acc5c98
commit
981384b79a
@@ -326,7 +326,7 @@ func (g *GitLab) PullRequests(ctx context.Context, u *model.User, r *model.Repo,
|
||||
result := make([]*model.PullRequest, len(pullRequests))
|
||||
for i := range pullRequests {
|
||||
result[i] = &model.PullRequest{
|
||||
Index: int64(pullRequests[i].ID),
|
||||
Index: model.ForgeRemoteID(strconv.Itoa(pullRequests[i].ID)),
|
||||
Title: pullRequests[i].Title,
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user