Skip to content

ci: automatically delete merged pull request branches - #4

Merged
acgetchell merged 2 commits into
mainfrom
ci/auto-delete-merged-branches
Oct 25, 2026
Merged

acgetchell merged 2 commits into
mainfrom
ci/auto-delete-merged-branches

Conversation

@acgetchell

Copy link
Copy Markdown
Owner

Merged pull-request branches were left behind because automatic branch deletion was disabled. Enable delete_branch_on_merge in the checked-in repository settings and document the setting alongside native auto-merge.

The hosted GitHub setting has already been enabled and read back as true; this PR records that configuration. Existing auto-merge and review protections remain in place.

Validation: just check, just ci (36 tests), and git diff --check passed. No manuscript or build inputs changed.

@coderabbitai

coderabbitai Bot commented Oct 25, 2026 •

Copy link
Copy Markdown

Review in Change Stack →

⚠️ Automatic approval withheld

Automatic approval is disabled by the configured approval policy for this pull request. Review comments and requests for changes continue normally.

Next step: Have a maintainer review and approve directly in your Git provider. The approve and resolve commands do not bypass this policy.

Assessed commit: 2fbc23d968d5.

No actionable comments were generated in the recent review.

Recent review info
Run configuration
Commits

Reviewing files that changed from the base of the PR and between ad34735 and 2fbc23d.

Files selected for processing: 1
  • docs/SECURING.md

Included review availability: This review used your included allowance. 0 included reviews remain after this review. Your included PR review attempts over the past 7 days set your current allowance at 1 review per hour.

ℹ️ Recent review info
Automatic approval policy

Assessed commit: 2fbc23d968d5.

Setting Effective value Source
Automatic approvals Disabled Override 1
Merge risk Low Global configuration
Security risk Not set Global configuration

Matching overrides (numbered as in the resolved configuration):

  • Override 1 — any author; paths: .github/**; automatic approvals: disabled.

Any matching disabled override withholds approval, regardless of risk. Otherwise, the strictest explicitly set limit wins for each score. Limits omitted by all matching overrides inherit the global configuration.

Not set means no limit was configured after inheritance. Use @coderabbitai configuration to inspect the resolved settings and their sources.

📝 Summary

Summary by CodeRabbit

  • Chores
    • Merged pull request branches are automatically deleted after merging. Automatic merging remains enabled, so eligible pull requests can still be merged automatically.
  • Documentation
    • Updated repository administration guidance to cover automatic branch deletion alongside native auto-merge settings.
    • Updated instructions for applying the committed repository settings to include automatic deletion of merged branches. This documents both the behavior configured for the repository and the corresponding setting to apply.

The repository settings now enable automatic deletion of branches after merge while retaining automatic merging. The documentation describes both settings and how to apply them.

Changes: Repository controls

Layer / File(s) Summary
Configure branch deletion after merge
.github/settings/repository.json, docs/SECURING.md
The settings retain automatic merging and add branch deletion after merge. The documentation describes both controls and how to enable them.

Priority: Low

Estimated code review effort: 1 (Trivial) | ~5 minutes

Change: Other

Possibly related PRs

  • acgetchell/Papers#3: Adds automatic merging to the repository settings and documents that control, which this change extends.
Merge Risk: Minimal · up to 2fbc2

The branch-cleanup configuration and documentation are consistent and ready to merge.

Pre-merge checks: Passed 5
Check name Status Explanation
Description check Passed The description directly explains the enabled branch deletion setting, its documentation updates, preserved protections, and validation results.
Title check Passed The title clearly and concisely identifies the main change: automatic deletion of merged pull request branches.
Docstring Coverage Passed No functions found in the changed files to evaluate docstring coverage. Skipping docstring coverage check. Docstring coverage is scoped to functions touched by this diff. Analyzed 0 functions across 0…
Linked Issues check Passed Check skipped because no linked issues were found for this pull request.
Out of Scope Changes check Passed Check skipped because no linked issues were found for this pull request.
Full details: Docstring Coverage

Explanation

No functions found in the changed files to evaluate docstring coverage. Skipping docstring coverage check. Docstring coverage is scoped to functions touched by this diff. Analyzed 0 functions across 0 files. (1 skipped: 1 unsupported.)

Finishing Touches
🧪 Generate unit tests (beta)
  • Commit to this branch
  • Create a new PR
  • Autofix · Keep fixing CodeRabbit findings and required CI, and resolving merge conflicts

Comment @coderabbitai help to get the list of available commands.

@acgetchell
acgetchell marked this pull request as ready for review October 25, 2026 06:58
@acgetchell acgetchell self-assigned this Oct 25, 2026
@acgetchell
acgetchell merged commit 033a54b into main Oct 25, 2026
15 checks passed
@acgetchell
acgetchell deleted the ci/auto-delete-merged-branches branch October 25, 2026 07:06
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant