Skip to content

fix: declaratively enforce allow_auto_merge in settings.yml#205

Open
don-petry wants to merge 2 commits intomainfrom
claude/issue-163-20260418-1852
Open

fix: declaratively enforce allow_auto_merge in settings.yml#205
don-petry wants to merge 2 commits intomainfrom
claude/issue-163-20260418-1852

Conversation

@don-petry
Copy link
Copy Markdown
Collaborator

Summary

  • Adds repository block to .github/settings.yml with allow_auto_merge: true, delete_branch_on_merge: true, and has_wiki: false
  • Re-applied the setting via GitHub API PATCH for immediate effect
  • Closes the recurring compliance drift: probot/settings will now enforce the value declaratively

Root cause

The compliance audit (allow_auto_merge check) has been flagging this repo since the setting was not declared in .github/settings.yml. Although the setting was manually patched via API in prior sessions (PR #185 from 2026-04-14, still unmerged), the absence of a declarative repository block means the value can drift back to null after certain GitHub platform events. This PR makes the fix permanent by having probot/settings own the setting.

Why not just merge PR #185?

PR #185 contains the same change, but since it has been open since April 14 without being merged, this PR supersedes it. PR #185 can be closed after this is merged.

Changes

  • .github/settings.yml: Added repository block with allow_auto_merge: true, delete_branch_on_merge: true, has_wiki: false

Closes #163

Generated with Claude Code

…low_auto_merge

Adds the `repository` block to `.github/settings.yml` so that probot/settings
declaratively manages `allow_auto_merge: true` and prevents future drift back
to `null`. Also enforces `delete_branch_on_merge: true` and `has_wiki: false`
per the org-wide standard defaults.

The live GitHub API setting has been re-applied via PATCH to ensure immediate
effect, and will now be maintained by probot/settings whenever the file is
updated.

Closes #163

Co-authored-by: don-petry <don-petry@users.noreply.github.com>
Copilot AI review requested due to automatic review settings April 18, 2026 18:57
@coderabbitai
Copy link
Copy Markdown

coderabbitai Bot commented Apr 18, 2026

Warning

Rate limit exceeded

@github-actions[bot] has exceeded the limit for the number of commits that can be reviewed per hour. Please wait 46 minutes and 1 seconds before requesting another review.

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 46 minutes and 1 seconds.

⌛ How to resolve this issue?

After the wait time has elapsed, a review can be triggered using the @coderabbitai review command as a PR comment. Alternatively, push new commits to this PR.

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 configuration

Configuration used: Path: .coderabbit.yaml

Review profile: CHILL

Plan: Pro

Run ID: bbf3b950-7a6d-4d6b-a54c-f8a3221ea06e

📥 Commits

Reviewing files that changed from the base of the PR and between 32e618b and 6ed8f98.

📒 Files selected for processing (1)
  • .github/settings.yml
✨ Finishing Touches
🧪 Generate unit tests (beta)
  • Create PR with unit tests
  • Commit unit tests in branch claude/issue-163-20260418-1852

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.

❤️ Share

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

Copy link
Copy Markdown
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

Note

Copilot was unable to run its full agentic suite in this review.

Makes GitHub repository settings compliant and drift-resistant by declaring them in .github/settings.yml so probot/settings can continuously enforce them.

Changes:

  • Adds a repository block to declaratively enforce allow_auto_merge: true
  • Enables delete_branch_on_merge: true and disables has_wiki: false as standard defaults
  • Documents intent with references to the probot/settings project and internal standards

Comment thread .github/settings.yml
Comment on lines +4 to +9
# Repository-level settings — standard defaults
# Reference: https://github.com/petry-projects/.github/blob/main/standards/github-settings.md#repository-settings--standard-defaults
repository:
allow_auto_merge: true
delete_branch_on_merge: true
has_wiki: false
Copy link

Copilot AI Apr 18, 2026

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

In probot/settings configs, repository: is expected at the YAML root. This file currently shows two-space indentation at the top-level (e.g., the initial comment lines are prefixed with two spaces in the diff view), which can be a signal that keys may not actually be at the root in the real file. If repository: ends up nested under another map due to leading indentation, probot/settings will ignore it and the compliance drift will continue. Ensure repository:, labels:, etc. are truly top-level (no leading indentation) in the actual YAML.

Copilot uses AI. Check for mistakes.
@sonarqubecloud
Copy link
Copy Markdown

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.

Compliance: allow_auto_merge

2 participants