gitlab4j-api icon indicating copy to clipboard operation
gitlab4j-api copied to clipboard

Commits API (getCommits) doesn't return the commits in the default order (reverse chronological)

Open maddymanu opened this issue 3 years ago • 2 comments

Hey Guys!!

I think there is an issue with the commits api, wherein it doesn't return the commits in the default, reverse chronological order. https://docs.gitlab.com/ee/api/commits.html

From a quick investigation, it looks like the all=true query param default is messing up the order.

We have a workaround, but still wanted to flag it!

maddymanu avatar May 05 '21 17:05 maddymanu

Thanks @maddymanu for your report.

jabby avatar May 17 '21 14:05 jabby

I'm using getCommits(Object projectIdOrPath, int page, int perPage) to solve this.

ityoung avatar May 09 '22 11:05 ityoung