Repository navigation
Manage master branch rules in .asf.yaml - #2225
Merged
Merged
Conversation
After the transfer to the apache organization, PMC members have no admin rights on the repository, so the project can no longer change the rulesets that protect master. ASF Infra applies .asf.yaml on every push to the default branch and updates an existing ruleset in place when .asf.yaml declares one with the same name. .asf.yaml declares master-no-deletions-or-force-pushes and master-pr-rules under their current names and keeps their rules. The required checks (CI gate, zizmor, Validate renovate.json from GitHub Actions) move to a new ruleset, master-required-checks: the raw syntax that master-pr-rules needs for its merge queue sends integration_id to GitHub as a string, and the convenience syntax resolves app_slug to the integer id. license/cla, reported by Uber's CLA assistant, is no longer required. The merge settings are pinned to squash with the PR title and description, auto-merge, and head branch deletion. Assisted-by: Claude Code (claude-opus-5-5)
msridhar
approved these changes
Nov 30, 2026
msridhar
requested changes
Dec 1, 2026
msridhar
approved these changes
Dec 1, 2026
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
After the transfer to the apache organization, PMC members have no admin rights on the repository, so the project can no longer change the two rulesets that protect
master(master-no-deletions-or-force-pushesandmaster-pr-rules, created before the transfer). ASF Infra applies.asf.yamlon every push to the default branch, and it updates an existing ruleset in place when.asf.yamldeclares one with the same name..asf.yamldeclares both rulesets under their current names and keeps their rules: no deletion or force push, linear history, one approving review, squash only, and the merge queue. The required checksCI gate,zizmor, andValidate renovate.jsonfrom GitHub Actions move to a new ruleset,master-required-checks.master-pr-rulesneeds the raw ruleset syntax for its merge queue, and in that syntax asfyaml sendsintegration_idto GitHub as a string, sinceintegration_idis missing from_NUMERICAL_VALUE_KEYSinasfyaml/feature/github/rulesets.py. The convenience syntax of the new ruleset resolvesapp_slug: github-actionsto the integer 15368..asf.yamlalso pins the current merge settings: squash with the PR title and description as the commit message, auto-merge, and deletion of the head branch after merge. The rebase button is turned off, since the ruleset already allowed only squash.license/clais no longer a required check. Uber's CLA assistant reports it, and an ASF project collects contributor agreements through the ASF ICLA instead. If the app is removed from the repository, the check never reports and blocks every PR.Scope.
.github/PULL_REQUEST_TEMPLATE.mdstill asks contributors to sign the Uber CLA; replacing that text is a separate decision about the CLA. This change does not affect whose approval counts: GitHub counts an approval only from an account with write access, and gitbox grants that to committers who link their GitHub account at https://gitbox.apache.org/setup/.renovate-approve[bot]has no access to the repository, so Renovate PRs now wait for a human approval; whether to exempt them is left for a separate decision.After the merge,
gh api repos/apache/nullaway/rulesetsshould list the three rulesets, with the merge queue rule still inmaster-pr-rules.🤖 Generated with Claude Code