rok opened a new pull request, #55891: URL: https://github.com/apache/arrow/pull/55891
### Rationale for this change `.asf.yaml` currently uses classic `protected_branches`, which hits `/repos/apache/arrow/branches/main/protection` and has been failing with `502` errors on every merge to `main` — preventing `.asf.yaml` syncs (including `pull_requests.creation_cap.bypass_users`) from completing. Migrating to GitHub `rulesets` aligns with ASF Infra's standard branch protection configuration (used by `parquet-format`, `parquet-java`, `datafusion`, etc.) and moves ongoing syncs off the legacy branch protection endpoint. ### What changes are included in this PR? Replace `github.protected_branches` with an equivalent `github.rulesets` rule protecting `~DEFAULT_BRANCH` against force pushes and deletion, with `bypass_teams: [root]` for ASF Infra. ### Are these changes tested? Validated `.asf.yaml` syntax locally; full verification happens via ASF Infra upon merge to `main`. > **Note for reviewers (@assignUser @kou @raulcd):** Removing `protected_branches` will trigger a one-time `DELETE /repos/apache/arrow/branches/main/protection` call. If that endpoint also returns `502`, ASF Infra will need to remove the legacy branch protection rule manually on GitHub. ### Are there any user-facing changes? No. * GitHub Issue: Closes #55890 -- This is an automated message from the Apache Git Service. To respond to the message, please log on to GitHub and use the URL above to go to the specific comment. To unsubscribe, e-mail: [email protected] For queries about this service, please contact Infrastructure at: [email protected]
