mirror of
https://codeberg.org/crowci/crow.git
synced 2025-08-12 06:02:53 +03: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
@@ -296,7 +296,7 @@ func (c *client) 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].GetNumber()),
|
||||
Index: model.ForgeRemoteID(strconv.Itoa(pullRequests[i].GetNumber())),
|
||||
Title: pullRequests[i].GetTitle(),
|
||||
}
|
||||
}
|
||||
|
Reference in New Issue
Block a user