By default, the API GET /projects/:id/repository/commits
gets commits of master branch, but I want to get other branch's commits.
According to Gitlab docs you can add parameter "ref_name" and specify the branch from which you want to get the commits:
GET /projects/:id/repository/commits?ref_name=my_branch_name
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With