Summary
Gets Travis CI pull request information.
- Namespace
- Cake
.Common .Build .TravisCI .Data - Containing Type
- Travis
C I Environment Info
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 |
---|---|
Travis |
The Travis CI pull request information. |