gitlab icon indicating copy to clipboard operation
gitlab copied to clipboard

How Do I Get Merge Request Commits After the First Page?

Open trisys3 opened this issue 1 year ago • 1 comments

The merge request commits API does not allow any options, but it seems that any commits after the first 20 are thrown out. Interestingly, the request still takes a longer time if there are more commits in the merge request.

For example, say I have a project called "my/project", and the first merge request on that project has more than 20 commits If I call Gitlab.client.merge_request_commits("my/project", 1).count, I get "20" as the result.

How do I get merge request commits after the first 20?

trisys3 avatar Jun 07 '24 19:06 trisys3

Unfortunately, this method currently doesn't support pagination using the page and per_page options. PRs are welcome.

NARKOZ avatar Jun 24 '24 15:06 NARKOZ