GitLabCIEnvironmentInfo.

PullRequest Property

Summary

Gets GitLab CI pull request information.

Syntax

public GitLabCIPullRequestInfo PullRequest { get; }

Examples

if (BuildSystem.GitLabCI.IsRunningOnGitLabCI)
{
    Information(
        @"PullRequest:
        IsPullRequest: {0}
        Id: {1}
        IId: {2}",
        BuildSystem.GitLabCI.Environment.PullRequest.IsPullRequest,
        BuildSystem.GitLabCI.Environment.PullRequest.Id,
        BuildSystem.GitLabCI.Environment.PullRequest.IId
        );
}
else
{
    Information("Not running on GitLabCI");
}
if (GitLabCI.IsRunningOnGitLabCI)
{
    Information(
        @"PullRequest:
        IsPullRequest: {0}
        Id: {1}
        IId: {2}",
        GitLabCI.Environment.PullRequest.IsPullRequest,
        GitLabCI.Environment.PullRequest.Id,
        GitLabCI.Environment.PullRequest.IId
        );
}
else
{
    Information("Not running on GitLabCI");
}

Value

Type Description
GitLabCIPullRequestInfo The GitLab CI pull request information.