Prerequisites
Cake runner
Cake Frosting
Cake version
5.0.0
Operating system
Windows
Operating system architecture
x64
CI Server
GitLab CI
What are you seeing?
GitLabCIPullRequestInfo provides information about the current pull request/merge request when running in GitLab CI.
However, it does not make available the source and target branch of the Merge Request.
What is expected?
GitLabCIPullRequestInfo should provide the source and target branch, analogous to e.g. AzurePipelinesPullRequestInfo
Steps to Reproduce
N/A
Output log
N/A
Workaround
The source and target branch can be determined by reading the environment variable CI_MERGE_REQUEST_SOURCE_BRANCH_NAME respectively CI_MERGE_REQUEST_TARGET_BRANCH_NAME