From 00f555bdba88cf9b287698a4a76699d331d39c09 Mon Sep 17 00:00:00 2001 From: Samuel Allan Date: Fri, 29 Nov 2024 12:26:12 +1030 Subject: [PATCH] Auto-delete branches on PR merge 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 --- terraform-plans/modules/GitHub/settings/main.tf | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/terraform-plans/modules/GitHub/settings/main.tf b/terraform-plans/modules/GitHub/settings/main.tf index 70aaf7e..4096c79 100644 --- a/terraform-plans/modules/GitHub/settings/main.tf +++ b/terraform-plans/modules/GitHub/settings/main.tf @@ -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 }