Skip to content

Compliance: delete_branch_on_merge #108

Closed

Description

@don-petry

Compliance Finding

Category: settings
Severity: warning
Check: delete_branch_on_merge

Detail

Automatically delete head branches must be enabled (current: null, expected: true)

Standard Reference

standards/github-settings.md#repository-settings--standard-defaults

Remediation

Please review the linked standard and bring this repository into compliance.

See the full standards documentation for implementation guidance.


This issue was automatically created by the weekly compliance audit.

Activity

  1. don-petry commented on Apr 9, 2026

    @don-petry
    ContributorAuthor

    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

  2. don-petry commented on Apr 9, 2026

    @don-petry
    ContributorAuthor

    Claude encountered an error —— View job


    Fixing Compliance Finding: delete_branch_on_merge

    • Read CLAUDE.md and AGENTS.md for repo standards
    • Read standards/github-settings.md for the relevant standard
    • Investigate how repository settings are managed in this repo
    • Implement the fix (enable delete_branch_on_merge)
    • Create a pull request
    • Self-review the PR
  3. don-petry commented on Apr 10, 2026

    @don-petry
    ContributorAuthor

    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

  4. don-petry commented on Apr 14, 2026

    @don-petry
    ContributorAuthor

    Claude encountered an error —— View job


    I'll analyze this and get back to you.

  5. don-petry commented on Apr 17, 2026

    @don-petry
    ContributorAuthor

    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

  6. don-petry commented on Apr 21, 2026

    @don-petry
    ContributorAuthor

    Weekly Compliance Audit (2026-04-21)

    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

  7. don-petry commented on Apr 24, 2026

    @don-petry
    ContributorAuthor

    Weekly Compliance Audit (2026-04-24)

    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

  8. don-petry commented on May 1, 2026

    @don-petry
    ContributorAuthor

    Weekly Compliance Audit (2026-05-01)

    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

  9. don-petry commented on May 8, 2026

    @don-petry
    ContributorAuthor

    Weekly Compliance Audit (2026-05-08)

    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

  10. don-petry commented on May 8, 2026

    @don-petry
    ContributorAuthor

    Claude finished @don-petry's task in 6m 35s —— View job • claude/issue-108-20260508-1732 • Create PR ➔


    Fixing Compliance Finding: delete_branch_on_merge

    • Read CLAUDE.md and AGENTS.md for repo standards
    • Read standards/github-settings.md for the relevant standard
    • Investigate how repository settings are managed in this repo
    • Apply the fix: delete_branch_on_merge=true set via GitHub API
    • Update documentation in standards/github-settings.md
    • Commit and push
    • Create a pull request
    • Self-review the PR (fixed: removed issue reference from standards doc)

    Summary

    Root cause: The petry-projects/.github repository had delete_branch_on_merge not explicitly set (null), failing the compliance check.

    Fix applied:

    1. Applied the setting via GitHub API: gh api -X PATCH repos/petry-projects/.github -F delete_branch_on_merge=true — confirmed true.
    2. Updated standards/github-settings.md to remove the stale "all 7 repos fully compliant" claim and replace it with an accurate note recording the remediation action and how to re-apply settings in future drift scenarios.

    The weekly compliance audit will auto-close this issue on its next run once it reads the corrected API state (the close_resolved_issues function closes issues for checks that no longer appear in findings).

    PR: #222

  11. don-petry commented on May 11, 2026

    @don-petry
    ContributorAuthor

    Weekly Compliance Audit (2026-05-11)

    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

  12. don-petry commented on May 12, 2026

    @don-petry
    ContributorAuthor

    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

  13. don-petry commented on May 12, 2026

    @don-petry
    ContributorAuthor

    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

  14. don-petry commented on May 12, 2026

    @don-petry
    ContributorAuthor

    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

  15. don-petry commented on May 12, 2026

    @don-petry
    ContributorAuthor

    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

  16. don-petry commented on May 12, 2026

    @don-petry
    ContributorAuthor

    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

  17. don-petry commented on May 13, 2026

    @don-petry
    ContributorAuthor

    Resolved! This check is now passing as of 2026-05-13. Closing automatically.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    compliance-auditAutomated compliance audit finding

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions