BitbucketPipelinesEnvironmentInfo.

PullRequest Property

Summary

Gets Bitbucket Pipelines pull request information.

Syntax

public BitbucketPipelinesPullRequestInfo PullRequest { get; }

Examples

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

Value

Type Description
BitbucketPipelinesPullRequestInfo The Bitbucket Pipelines pull request information.