NARKOZ / gitlab

Ruby wrapper and CLI for the GitLab REST API
https://narkoz.github.io/gitlab
BSD 2-Clause "Simplified" License
1.06k stars 395 forks source link

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

Open trisys3 opened 5 months ago

trisys3 commented 5 months ago

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?

NARKOZ commented 5 months ago

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