Merge automation
You can configure automatic branch deletion to automatically delete the source branch after merging pull requests into the base branch in the selected repository. You can also configure automatic branch deletion with the Repository Settings API.
Enable automatic branch deletion
By default, source branch deletion after merge is disabled. To enable automatic branch deletion:
-
Select a star system.
-
From Apps
, select Repository Settings or select it from your pinned apps.
-
Select the Merge automation tab.
-
Select the repository for which you want to configure automatic source branch deletion.
-
For Branch deletion after merging, select Enabled.
Disable automatic branch deletion
To disable automatic branch deletion:
-
Select a star system.
-
From Apps
, select Repository Settings or select it from your pinned apps.
-
Select the Merge automation tab.
-
Select the repository for which you want to disable automatic source branch deletion.
-
For Branch deletion after merging, select Disabled.