gitlab4j-api
gitlab4j-api copied to clipboard
Commits API (getCommits) doesn't return the commits in the default order (reverse chronological)
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!
Thanks @maddymanu for your report.
I'm using getCommits(Object projectIdOrPath, int page, int perPage)
to solve this.