TeamCityPullRequestInfo.

IsPullRequest Property

Summary

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

Syntax

public bool IsPullRequest { get; }

Remarks

env.Git_Branch is a required parameter in TeamCity for this to work.

Value

Type Description
bool true if the current build was started by a pull request; otherwise, false.