Summary
Gets a value indicating whether the current build was started by a pull request.
- Namespace
- Cake
.Common .Build .GitHubActions .Data - Containing Type
- Git
Hub Actions Pull Request Info
Syntax
public bool IsPullRequest { get; }
Examples
if (BuildSystem.GitHubActions.IsRunningOnGitHubActions)
{
Information(@"IsPullRequest: {0}", BuildSystem.GitHubActions.Environment.PullRequest.IsPullRequest);
}
if (GitHubActions.IsRunningOnGitHubActions)
{
Information(@"IsPullRequest: {0}", GitHubActions.Environment.PullRequest.IsPullRequest);
}
Value
| Type | Description |
|---|---|
| bool |
true if the current build was started by a pull request; otherwise, false.
|
