How to:
Can't find how to use Gitlab API(http://doc.gitlab.com/ce/api/) for getting all the above mentioned. Is there a way Gitlab API can help to get these directly or by introducing some sort of hack.
For the first point, I think you are looking for this:
curl --header "PRIVATE-TOKEN: ****" "http://gitlab/api/v3/projects/:project_id:/merge_requests/:mr_id:/commits"
the Second point can be found with the attribute author of
curl --header "PRIVATE-TOKEN: ****" "http://gitlab/api/v3/projects/:project_id:/merge_requests/:mr_id:
the last point is trickier, when you have the list of commit, you can get the diff
curl --header "PRIVATE-TOKEN: ****" "http://gitlab/api/v3/projects/:project_id:/repository/commits/:sha/diff
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