Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
trisys3 opened this issue Jun 7, 2024 · 1 comment
Open

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

trisys3 opened this issue Jun 7, 2024 · 1 comment
Labels
enhancement New feature or request help wanted Good for newcomers

Comments

@trisys3
Copy link

trisys3 commented Jun 7, 2024

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
Copy link
Owner

NARKOZ commented Jun 24, 2024

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

@NARKOZ NARKOZ added enhancement New feature or request help wanted Good for newcomers labels Jun 24, 2024
@NARKOZ NARKOZ added the hacktoberfest Hacktoberfest event label Oct 2, 2024
@NARKOZ NARKOZ removed the hacktoberfest Hacktoberfest event label Nov 4, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request help wanted Good for newcomers
Projects
None yet
Development

No branches or pull requests

2 participants