Skip to content

Make Merge Request source and target branch available in GitLabCIPullRequestInfo #4416

@ap0llo

Description

@ap0llo

Prerequisites

  • I have written a descriptive issue title
  • I have searched issues to ensure it has not already been reported

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions