fix: persist delete_branch_on_merge in settings.yml#200
fix: persist delete_branch_on_merge in settings.yml#200
Conversation
Add `delete_branch_on_merge: true` to the probot/settings configuration so that the compliance setting is maintained declaratively and cannot be inadvertently reset by a future probot/settings run. Closes #164 Co-authored-by: don-petry <don-petry@users.noreply.github.com>
|
Warning Rate limit exceeded
Your organization is not enrolled in usage-based pricing. Contact your admin to enable usage-based pricing to continue reviews beyond the rate limit, or try again in 45 minutes and 57 seconds. ⌛ How to resolve this issue?After the wait time has elapsed, a review can be triggered using the We recommend that you space out your commits to avoid hitting the rate limit. 🚦 How do rate limits work?CodeRabbit enforces hourly rate limits for each developer per organization. Our paid plans have higher rate limits than the trial, open-source and free plans. In all cases, we re-allow further reviews after a brief timeout. Please see our FAQ for further information. ℹ️ Review info⚙️ Run configurationConfiguration used: Path: .coderabbit.yaml Review profile: CHILL Plan: Pro Run ID: 📒 Files selected for processing (1)
✨ Finishing Touches🧪 Generate unit tests (beta)
Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out. Comment |
Self-reviewChange: Add Checklist:
No issues found. The change is minimal, correct, and consistent with the org standard. Also closing the superseded PR #184, which contains the same change on a different branch. |
|
@don-petry — PR ready for review. This adds |
There was a problem hiding this comment.
Pull request overview
Note
Copilot was unable to run its full agentic suite in this review.
Adds a declarative repository setting to ensure delete_branch_on_merge remains enabled via probot/settings, aligning the repo with the org compliance standard noted in #164.
Changes:
- Introduces a
repository:section in.github/settings.yml - Persists
delete_branch_on_merge: trueso probot/settings enforces it on every run
| repository: | ||
| # Automatically delete head branches after a pull request is merged | ||
| # Reference: https://github.com/petry-projects/.github/blob/main/standards/github-settings.md#repository-settings--standard-defaults | ||
| delete_branch_on_merge: true |
There was a problem hiding this comment.
If this file already defines other top-level probot/settings keys (e.g., existing repository settings elsewhere in the file), introducing a second repository: block would cause YAML key overwrites and only the last block would take effect. Ensure there is only a single top-level repository: mapping and merge this setting into it if one already exists.
|



Summary
delete_branch_on_merge: trueto.github/settings.ymlunder arepository:sectiontruefor this setting (likely set manually), but without the config file entry it is unmanagedWhy
The weekly compliance audit (#164) checks that
delete_branch_on_mergeistrueper the org standard. Persisting the value insettings.ymlmeans probot/settings will enforce it on every run, making the compliance state durable.Note on PR #184
PR #184 contains the same fix on a different branch. This PR supersedes it; #184 should be closed once this one merges.
Closes #164
Generated with Claude Code