Skip to content

Commit

Permalink
Switch to "ListProjectMergeRequests" for GitLab
Browse files Browse the repository at this point in the history
Signed-off-by: Jerry Jackson <[email protected]>
  • Loading branch information
jrryjcksn committed Oct 6, 2021
1 parent 4605275 commit 6615739
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion gitlab/client_repository_pullrequest.go
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,7 @@ type PullRequestClient struct {

// List lists all pull requests in the repository
func (c *PullRequestClient) List(ctx context.Context) ([]gitprovider.PullRequest, error) {
mrs, _, err := c.c.Client().MergeRequests.ListMergeRequests(nil)
mrs, _, err := c.c.Client().MergeRequests.ListProjectMergeRequests(getRepoPath(c.ref), nil)
if err != nil {
return nil, err
}
Expand Down

0 comments on commit 6615739

Please sign in to comment.