Summary
Gets the name of the target branch for a pull request.
- Namespace
- Cake
.Common .Build .AzurePipelines .Data - Containing Type
- Azure
Pipelines Pull Request Info
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 |
