I know that the docs say, that the variable CI_MERGE_REQUEST_LABELS is available if pipeline is a merge request pipeline and the MR is open.

My dream was it to label my MR's with patch, minor or major labels. When merge the MR, my pipline, for e.g. master branch, gets triggered and in the jobs of that pipeline I want to use the label.

In the job I want to do some Version-Number stuff with the label information. We use this for other connected services.

Does someone has an idea how to get access to the labels or has another approach how to get information about the kind of the release (major, minor, patch)?

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Browse other questions tagged or ask your own question.