TravisCIEnvironmentInfo.

PullRequest Property

Summary

Gets Travis CI pull request information.

Syntax

public TravisCIPullRequestInfo PullRequest { get; }

Examples

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

Value

Type Description
TravisCIPullRequestInfo The Travis CI pull request information.