BitriseEnvironmentInfo.

PullRequest Property

Summary

Gets Bitrise pull request information.

Syntax

public BitrisePullRequestInfo PullRequest { get; }

Examples

if (BuildSystem.Bitrise.IsRunningOnBitrise)
{
    Information(
        @"PullRequest:
        IsPullRequest: {0}
        Id: {1}",
        BuildSystem.Bitrise.Environment.PullRequest.IsPullRequest,
        BuildSystem.Bitrise.Environment.PullRequest.Id
        );
}
else
{
    Information("Not running on Bitrise");
}
if (Bitrise.IsRunningOnBitrise)
{
    Information(
        @"PullRequest:
        IsPullRequest: {0}
        Id: {1}",
        Bitrise.Environment.PullRequest.IsPullRequest,
        Bitrise.Environment.PullRequest.Id
        );
}
else
{
    Information("Not running on Bitrise");
}

Value

Type Description
BitrisePullRequestInfo The Bitrise pull request information.