Skip to content

Commit

Permalink
Auto-delete branches on PR merge (#121)
Browse files Browse the repository at this point in the history
As far as I know, we never have cases where we want to keep the branch
after a PR has merged.
And if we do on a rare occasion,
it should be easy to restore the branch.

Auto-deleting brings some conveniences,
including more efficiency and less forgotten stale branches.

Fixes: #106
  • Loading branch information
samuelallan72 authored Dec 3, 2024
1 parent f98332f commit b41a128
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion terraform-plans/modules/GitHub/settings/main.tf
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ resource "github_repository" "repo" {
allow_auto_merge = false

allow_update_branch = true
delete_branch_on_merge = false
delete_branch_on_merge = true
vulnerability_alerts = true

}
Expand Down

0 comments on commit b41a128

Please sign in to comment.