From f7b37e116cb367e178ccff20fa0fc1af5c550a25 Mon Sep 17 00:00:00 2001 From: Vladimir Sitnikov Date: Tue, 1 Dec 2026 00:26:20 +0300 Subject: [PATCH 1/2] Manage master branch rules in .asf.yaml 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) --- .asf.yaml | 74 ++++++++++++++++++++ .github/workflows/continuous-integration.yml | 2 +- renovate.json | 2 +- 3 files changed, 76 insertions(+), 2 deletions(-) create mode 100644 .asf.yaml diff --git a/.asf.yaml b/.asf.yaml new file mode 100644 index 0000000000..4b2582ac46 --- /dev/null +++ b/.asf.yaml @@ -0,0 +1,74 @@ +# Repository settings applied by ASF Infra on every push to the default branch. +# Reference: https://github.com/apache/infrastructure-asfyaml +github: + enabled_merge_buttons: + squash: true + # The PR description becomes the body of the squashed commit. + squash_commit_message: PR_TITLE_AND_DESC + merge: false + rebase: false + pull_requests: + allow_auto_merge: true + del_branch_on_merge: true + # The ruleset names match the rulesets created before the transfer, + # so Infra updates those rulesets in place instead of adding new ones. + rulesets: + - name: master-no-deletions-or-force-pushes + target: branch + enforcement: active + conditions: + ref_name: + include: + - "~DEFAULT_BRANCH" + exclude: [] + rules: + - type: deletion + - type: non_fast_forward + - name: master-pr-rules + target: branch + enforcement: active + conditions: + ref_name: + include: + - "~DEFAULT_BRANCH" + exclude: [] + rules: + - type: required_linear_history + - type: pull_request + parameters: + required_approving_review_count: 1 + dismiss_stale_reviews_on_push: false + require_code_owner_review: false + require_last_push_approval: false + required_review_thread_resolution: false + require_extra_approval_for_unattributed_changes: true + allowed_merge_methods: + - squash + - type: merge_queue + parameters: + merge_method: SQUASH + grouping_strategy: ALLGREEN + max_entries_to_build: 5 + min_entries_to_merge: 1 + max_entries_to_merge: 5 + min_entries_to_merge_wait_minutes: 5 + check_response_timeout_minutes: 60 + # Required checks use the convenience syntax: it converts app_slug to the integer + # integration_id that GitHub expects, while the raw syntax passes integration_id as a string. + - name: master-required-checks + type: branch + branches: + includes: + - "~DEFAULT_BRANCH" + excludes: [] + # master-no-deletions-or-force-pushes already carries these rules. + restrict_deletion: false + restrict_force_push: false + required_status_checks_strict: true + required_status_checks: + - name: CI gate + app_slug: github-actions + - name: zizmor + app_slug: github-actions + - name: Validate renovate.json + app_slug: github-actions diff --git a/.github/workflows/continuous-integration.yml b/.github/workflows/continuous-integration.yml index ab72ff50ef..13304244db 100644 --- a/.github/workflows/continuous-integration.yml +++ b/.github/workflows/continuous-integration.yml @@ -226,7 +226,7 @@ jobs: export NULLAWAY_VERSION cd "/tmp/$PROJECT" eval "$BUILD" - # The master-pr-rules ruleset can require this one check instead of each job and matrix entry, so a + # The master-required-checks ruleset in .asf.yaml can require this one check instead of each job and matrix entry, so a # project added to the compile-other-projects matrix gates merges without a ruleset change. # always() runs the gate when a needed job fails or is cancelled; a skipped gate would pass. # test-with-error-prone-snapshot is left out: a break in the Error Prone snapshot would block every PR. diff --git a/renovate.json b/renovate.json index ca95ac122d..17645bd076 100644 --- a/renovate.json +++ b/renovate.json @@ -36,7 +36,7 @@ "dependencyDashboardApproval": true }, { - "description": "A minor, patch, pin or digest update is marked for automerge. Renovate turns on GitHub auto-merge for the PR (platformAutomerge defaults to true), and GitHub adds the PR to the merge queue of master once the master-pr-rules ruleset is satisfied: the required status checks pass and the PR has the required approving review. A major update matches none of these types, so after dependency dashboard approval it still waits for a maintainer to merge it; only the GitHub-published actions in the last rule automerge their majors. rebaseWhen stays at its default, auto, which Renovate resolves to conflicted because master has a merge queue. An automerge PR is therefore rebased only when it conflicts. Before the queue merges a PR, it runs CI on master with that PR and the PRs queued ahead of it applied.", + "description": "A minor, patch, pin or digest update is marked for automerge. Renovate turns on GitHub auto-merge for the PR (platformAutomerge defaults to true), and GitHub adds the PR to the merge queue of master once the master rulesets in .asf.yaml are satisfied: the required status checks pass and the PR has the required approving review. A major update matches none of these types, so after dependency dashboard approval it still waits for a maintainer to merge it; only the GitHub-published actions in the last rule automerge their majors. rebaseWhen stays at its default, auto, which Renovate resolves to conflicted because master has a merge queue. An automerge PR is therefore rebased only when it conflicts. Before the queue merges a PR, it runs CI on master with that PR and the PRs queued ahead of it applied.", "matchUpdateTypes": [ "minor", "patch", From 27edac5d68ad5ceb0c10badb82a351135238cd1d Mon Sep 17 00:00:00 2001 From: Manu Sridharan Date: Tue, 1 Dec 2026 06:54:37 -0800 Subject: [PATCH 2/2] remove zizmor for now --- .asf.yaml | 2 -- 1 file changed, 2 deletions(-) diff --git a/.asf.yaml b/.asf.yaml index 4b2582ac46..5c66382cab 100644 --- a/.asf.yaml +++ b/.asf.yaml @@ -68,7 +68,5 @@ github: required_status_checks: - name: CI gate app_slug: github-actions - - name: zizmor - app_slug: github-actions - name: Validate renovate.json app_slug: github-actions