AzurePipelinesPullRequestInfo.

TargetBranchName Property

Summary

Gets the name of the target branch for a pull request.

Syntax

public string TargetBranchName { get; }

Remarks

Short name such as main, as opposed to TargetBranch which is often a ref like refs/heads/main. This property is populated only if the build ran because of a Git PR affected by a branch policy.

Value

Type Description
string