Skip to content

Improve API docs for `Get single merge request commits`

What does this MR do and why?

Improve API docs for Get single merge request commits.

  • Add table with response attributes
  • Add example curl command
  • Update example response

Contributes to #433318.

MR acceptance checklist

Please evaluate this MR against the MR acceptance checklist. It helps you analyze changes to reduce risks in quality, performance, reliability, security, and maintainability.

How to set up and validate locally

  1. Run this curl command to see the API response for a list of project MRs:
curl --header "PRIVATE-TOKEN: <your-token>" \
  --url "https://gitlab.com/api/v4/projects/45308633/merge_requests/3/commits" \
  | jq  
  1. Compare the response to what's documented by this MR

Merge request reports