Hi Im working on creating a way to be able to grab the merge request ID from the .gitlab-ci.yml whenever a merge request happens. I would then like to grab the ID of that merge request and pass it to the Gitlab API and do some additional checks on the merge request. This last part I have already figured out but I want to grab the ID dynamically from the merge request and pass it to my ci.yml file and this is where I’m struggling. Is there any way of doing this?
Related topics
Topic | Replies | Views | Activity | |
---|---|---|---|---|
GitLab CI Variables | 0 | 1034 | January 8, 2016 | |
Is there a way to see merge request information on the pipeline run after the merge request is merged? | 0 | 526 | November 5, 2020 | |
Merge request URL from CI MERGE_REQUEST environment variables | 1 | 5098 | March 31, 2022 | |
Write script for GitLab for automatic merge of Merge Request | 0 | 2427 | November 5, 2021 | |
Reading all commits in merge request | 4 | 3484 | April 5, 2022 |