Skip to content

feat: enable automatic deletion of merged head branches - #31

Merged
jonathanmorley merged 3 commits into
mainfrom
feat/delete-branch-on-merge
Aug 21, 2026
Merged

feat: enable automatic deletion of merged head branches#31
jonathanmorley merged 3 commits into
mainfrom
feat/delete-branch-on-merge

Conversation

@jonathanmorley

Copy link
Copy Markdown
Owner

Summary

  • Enables GitHub's Automatically delete head branches (delete_branch_on_merge = true) for all 41 jonathanmorley repos (37 public, 4 private) by flipping the default in both public_default_settings and private_default_settings.
  • Switches repo discovery queries from org:jonathanmorley to user:jonathanmorley — the account is a personal User account; both currently resolve identically but user: is the correct qualifier.

Plan verification (local)

  • terraform validate: success
  • terraform plan: 41 resources updated in-place, each with exactly delete_branch_on_merge: false -> true. No other attribute changes, no destroys or replacements (prevent_destroy also guards).

Enforcement after merge

Merging to main triggers the apply workflow (auto-approves the saved plan); the daily drift workflow keeps the setting enforced on all existing and newly created repos.

@jonathanmorley jonathanmorley added the ai:autofix Changes made by AI coding agents label Aug 21, 2026
@jonathanmorley
jonathanmorley merged commit e0be629 into main Aug 21, 2026
2 checks passed
@jonathanmorley
jonathanmorley deleted the feat/delete-branch-on-merge branch August 22, 2026 19:32
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

ai:autofix Changes made by AI coding agents

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant