GitHubActionsEnvironmentInfo.

PullRequest Property

Summary

Gets GitHub Actions pull request information.

Syntax

public GitHubActionsPullRequestInfo PullRequest { get; }

Examples

if (BuildSystem.GitHubActions.IsRunningOnGitHubActions)
{
    Information(
        @"PullRequest:
        IsPullRequest: {0}",
        BuildSystem.GitHubActions.Environment.PullRequest.IsPullRequest
        );
}
else
{
    Information("Not running on GitHubActions");
}
if (GitHubActions.IsRunningOnGitHubActions)
{
    Information(
        @"PullRequest:
        IsPullRequest: {0}",
        GitHubActions.Environment.PullRequest.IsPullRequest
        );
}
else
{
    Information("Not running on GitHubActions");
}

Value

Type Description
GitHubActionsPullRequestInfo The GitHub Actions pull request information.