Add CI variable CI_MERGE_REQUEST_SOURCE_BRANCH_COMMIT_MESSAGE for merged result pipelines
Proposal
Current issue
I would like to be able to access the source branch latest commit message in merged results pipelines.
However, this is currently unavailable : CI_COMMIT_MESSAGE
can be used for Merge Request pipelines, but it becomes an automated merge commit message for Merged Result pipelines, as the latest commit on the ref is then the internal merge commit.
Solution
Add a new CI variable CI_MERGE_REQUEST_SOURCE_BRANCH_COMMIT_MESSAGE
available to Merged Results pipelines with value equal to the commit message of the source branch latest commit.
Proposal stems from the discussion in the issue 232602 about [ci skip]
flag not being considered in merged results pipelines.
Implementation discussion
- Add the variable to Merged Results pipelines
- Update documentation
- Add an API endpoint ??