GitHubActionsPullRequestInfo.

IsPullRequest Property

Summary

Gets a value indicating whether the current build was started by a pull request.

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.