You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Added delete_branch_on_merge: true to .github/settings.yml under the repository section. When probot/settings runs, it will apply this setting to enable automatic deletion of head branches after PR merge, resolving the compliance finding.
CI queued (pure YAML config change — no code affected, all tests expected to pass)
What was done: Added delete_branch_on_merge: true under a repository: section in .github/settings.yml. The GitHub API already returns true for this setting (likely set manually), but the declarative config was missing. Persisting it ensures probot/settings enforces the value on every run, making the compliance state durable.
GitHub API (gh api repos/petry-projects/google-app-scripts) already returns delete_branch_on_merge: true
The repository is already compliant. The settings.yml has the correct value and the live GitHub repository setting matches.
Implementation Checklist
Verify .github/settings.yml contains delete_branch_on_merge: true — confirmed on main
Verify GitHub repository API returns delete_branch_on_merge: true — confirmed via API
Tests to Write
None required — this is a pure repository configuration change with no observable behavioral change in code. TDD exception applies per AGENTS.md: "For pure documentation, configuration, or behavior-preserving refactors with no observable behavioral change, skip this phase."
Test Command
npm test
Next Steps
Post completion report confirming compliance. No code changes needed.
Verified GitHub repository API already returns delete_branch_on_merge: true
Confirmed all other standard settings (allow_auto_merge: true, has_wiki: false) are also correct
Ran full test suite — all tests pass
Test Results
Test Suites: 12 passed, 12 total
Tests: 301 passed, 301 total
Snapshots: 0 total
Time: 4.336 s
Ran all test suites.
Files Changed
None — no changes were required.
Notes
The repository was already fully compliant at investigation time:
.github/settings.yml on main has delete_branch_on_merge: true (managed via probot/settings)
The live GitHub repository setting also returns true via the API
The compliance audit likely flagged this before probot/settings had a chance to sync the settings.yml configuration to the actual repository. No code or configuration changes were necessary.
TDD exception noted: This was a pure configuration compliance check with no behavioral code change, so Phase 2 (failing tests) was skipped per AGENTS.md policy.
Activity
don-petry commentedon Apr 9, 2026
Weekly Compliance Audit (2026-04-09)
This finding is still open.
Detail: Automatically delete head branches must be enabled (current:
null, expected:true)Standard: standards/github-settings.md#repository-settings--standard-defaults
don-petry commentedon Apr 9, 2026
Claude encountered an error —— View job
I'll analyze this and get back to you.
don-petry commentedon Apr 10, 2026
Weekly Compliance Audit (2026-04-10)
This finding is still open.
Detail: Automatically delete head branches must be enabled (current:
null, expected:true)Standard: standards/github-settings.md#repository-settings--standard-defaults
don-petry commentedon Apr 14, 2026
Claude finished @don-petry's task in 1m 2s —— View job •
claude/issue-164-20260414-1130• [Create PR ➔](https://github.com/petry-projects/google-app-scripts/compare/main...claude/issue-164-20260414-1130?quick_pull=1&title=Issue%20%23164%3A%20Changes%20from%20Claude&body=This%20PR%20addresses%20issue%20%23164%0A%0AGenerated%20with%20%5BClaude%20Code%5D(https%3A%2F%2Fclaude.ai%2Fcode)Fixing
delete_branch_on_mergeCompliance Findingdelete_branch_on_merge: truefixAdded
delete_branch_on_merge: trueto.github/settings.ymlunder therepositorysection. When probot/settings runs, it will apply this setting to enable automatic deletion of head branches after PR merge, resolving the compliance finding.petry-projects/google-app-scripts#184
fix: enable delete_branch_on_merge for compliance
don-petry commentedon Apr 17, 2026
Weekly Compliance Audit (2026-04-17)
This finding is still open.
Detail: Automatically delete head branches must be enabled (current:
null, expected:true)Standard: standards/github-settings.md#repository-settings--standard-defaults
don-petry commentedon Apr 18, 2026
Claude finished @don-petry's task in 3m 57s —— View job •
claude/issue-164-20260418-1849• [Create PR ➔](https://github.com/petry-projects/google-app-scripts/compare/main...claude/issue-164-20260418-1849?quick_pull=1&title=Issue%20%23164%3A%20Changes%20from%20Claude&body=This%20PR%20addresses%20issue%20%23164%0A%0AGenerated%20with%20%5BClaude%20Code%5D(https%3A%2F%2Fclaude.ai%2Fcode)Fixing
delete_branch_on_mergeCompliance Findingdelete_branch_on_merge: truerequired per github-settings.mdtrue, but.github/settings.ymlonmainhas norepository:section (probot/settings could reset it)delete_branch_on_merge: trueto.github/settings.ymlWhat was done: Added
delete_branch_on_merge: trueunder arepository:section in.github/settings.yml. The GitHub API already returnstruefor this setting (likely set manually), but the declarative config was missing. Persisting it ensures probot/settings enforces the value on every run, making the compliance state durable.petry-projects/google-app-scripts#200 | | Branch
fix: persist delete_branch_on_merge in settings.yml
11 remaining items
don-petry commentedon May 12, 2026
Weekly Compliance Audit (2026-05-12)
This finding is still open.
Detail: Automatically delete head branches must be enabled (current:
null, expected:true)Standard: standards/github-settings.md#repository-settings--standard-defaults
don-petry commentedon May 12, 2026
Weekly Compliance Audit (2026-05-12)
This finding is still open.
Detail: Automatically delete head branches must be enabled (current:
null, expected:true)Standard: standards/github-settings.md#repository-settings--standard-defaults
don-petry commentedon May 13, 2026
Resolved! This check is now passing as of 2026-05-13. Closing automatically.
don-petry commentedon Jun 2, 2026
Dev-Lead Implementation Plan
Issue: #164 — Compliance: delete_branch_on_merge
Scope
Enable
delete_branch_on_mergerepository setting to satisfy the compliance audit requirement (expected:true).Investigation Finding
Before writing any code, I verified the current state:
.github/settings.ymlalready containsdelete_branch_on_merge: truegh api repos/petry-projects/google-app-scripts) already returnsdelete_branch_on_merge: trueThe repository is already compliant. The
settings.ymlhas the correct value and the live GitHub repository setting matches.Implementation Checklist
.github/settings.ymlcontainsdelete_branch_on_merge: true— confirmed onmaindelete_branch_on_merge: true— confirmed via APITests to Write
None required — this is a pure repository configuration change with no observable behavioral change in code. TDD exception applies per AGENTS.md: "For pure documentation, configuration, or behavior-preserving refactors with no observable behavioral change, skip this phase."
Test Command
npm testNext Steps
Post completion report confirming compliance. No code changes needed.
don-petry commentedon Jun 2, 2026
Dev-Lead: Implementation Complete
Plan Execution
AGENTS.mdand project standards.github/settings.ymlalready containsdelete_branch_on_merge: truedelete_branch_on_merge: trueallow_auto_merge: true,has_wiki: false) are also correctTest Results
Files Changed
None — no changes were required.
Notes
The repository was already fully compliant at investigation time:
.github/settings.ymlonmainhasdelete_branch_on_merge: true(managed via probot/settings)truevia the APIThe compliance audit likely flagged this before probot/settings had a chance to sync the
settings.ymlconfiguration to the actual repository. No code or configuration changes were necessary.TDD exception noted: This was a pure configuration compliance check with no behavioral code change, so Phase 2 (failing tests) was skipped per AGENTS.md policy.
don-petry commentedon Jun 5, 2026
Resolved! This check is now passing as of 2026-06-05. Closing automatically.
feat: implement issue #164 — Compliance: delete_branch_on_merge (#362)
feat: implement issue #164 — Compliance: delete_branch_on_merge (#362)
feat: implement issue #164 — Compliance: delete_branch_on_merge (#362)
feat: implement issue #164 — Compliance: delete_branch_on_merge (#362)
feat: implement issue #521 — Compliance: stub-surface-drift-pr-auto-r…