Skip to content

Accessing the MR commits API endpoint from a CI job

Everyone can contribute. Help move this issue forward while earning points, leveling up and collecting rewards.

Proposal

We would like to get the list of commits included in a Merge Request from a CI job. It appears that CI_JOB_TOKEN does not have access to the :id/merge_requests/:merge_request_iid/commits API endpoint, so we have to use a static token instead. This proposal would allow the CI_JOB_TOKEN to read Merge Request API endpoints.

Edited by 🤖 GitLab Bot 🤖