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