Policy: GitHub > Repository > Pull Request > Delete Branch on Merge
Configure whether to delete head branches when pull requests are merged or not.
Deleted branches will still be able to be restored.
Targets
This policy targets the following resource types:
Primary Policy
This policy is used with the following primary policy:
Policy Packs
This policy setting is used by the following policy packs:
Policy Specification
Schema Type |
|
---|---|
Default |
|
Valid Values [YAML] |
|
Examples [YAML] |
|
Category
In Your Workspace
Developers
- tmod:@turbot/turbot#/control/categories/other
- tmod:@turbot/github#/policy/types/repositoryPullRequestDeleteBranchOnMerge
- turbot graphql policy-type --id "tmod:@turbot/github#/policy/types/repositoryPullRequestDeleteBranchOnMerge"
- turbot graphql policy-settings --filter "policyTypeId:tmod:@turbot/github#/policy/types/repositoryPullRequestDeleteBranchOnMerge"
Get Policy TypeGet Policy Settings
Category URI
Policy Type URI
GraphQL
CLI