You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@texera.apache.org by gi...@apache.org on 2026/06/06 22:08:55 UTC
(texera) branch gh-readonly-queue/main/pr-5413-e02756113e9b9f9713c7acc3702eeaf30f18587b created (now d9676a732a)
This is an automated email from the ASF dual-hosted git repository.
github-merge-queue[bot] pushed a change to branch gh-readonly-queue/main/pr-5413-e02756113e9b9f9713c7acc3702eeaf30f18587b
in repository https://gitbox.apache.org/repos/asf/texera.git
at d9676a732a chore(asf): use raw payload bypass_actors for branch protection (#5413)
This branch includes the following new commits:
new d9676a732a chore(asf): use raw payload bypass_actors for branch protection (#5413)
The 1 revisions listed above as "new" are entirely new to this
repository and will be described in separate emails. The revisions
listed as "add" were already present in the repository and have only
been added to this reference.
(texera) 01/01: chore(asf): use raw payload bypass_actors for branch protection (#5413)
Posted by gi...@apache.org.
This is an automated email from the ASF dual-hosted git repository.
github-merge-queue[bot] pushed a commit to branch gh-readonly-queue/main/pr-5413-e02756113e9b9f9713c7acc3702eeaf30f18587b
in repository https://gitbox.apache.org/repos/asf/texera.git
commit d9676a732a03e97962fca0d7537bbf79cfd51dc4
Author: Yicong Huang <17...@users.noreply.github.com>
AuthorDate: Sat Jun 6 15:08:34 2026 -0700
chore(asf): use raw payload bypass_actors for branch protection (#5413)
### What changes were proposed in this PR?
Convert the `Default Branch Protection` ruleset in `.asf.yaml` from
convenience syntax to raw payload so individual users can actually be
registered as bypass actors — the convenience parser resolves
`bypass_teams` via `get_team_by_slug(...)`, leaving a username
unresolved (live `bypass_actors` on the ruleset is currently `null`).
Raw payload also skips the parser's `_to_ref()` prefix step, so branch
include patterns are spelled out in full (`refs/heads/release/*`,
`refs/heads/rel/*`).
### Any related issues, documentation, discussions?
Closes #5412. Follow-up to #5354 and INFRA-27977
(https://issues.apache.org/jira/browse/INFRA-27977).
### How was this PR tested?
Normalized `.asf.yaml` through `apache/infrastructure-asfyaml`'s real
`normalize_rulesets` and `configure_rulesets` (FakeRequester harness
from its own test suite); the resulting POST payload matches the live
ruleset shape on `apache/texera`.
### Was this PR authored or co-authored using generative AI tooling?
Generated-by: Claude Opus 4.7
---
.asf.yaml | 36 +++++++++++++++++++++---------------
1 file changed, 21 insertions(+), 15 deletions(-)
diff --git a/.asf.yaml b/.asf.yaml
index 912dd52984..905585f7e2 100644
--- a/.asf.yaml
+++ b/.asf.yaml
@@ -106,21 +106,27 @@ github:
- context: Validate PR title
- name: "Default Branch Protection"
- type: branch
- branches:
- includes:
- - "~DEFAULT_BRANCH"
- - "release/*"
- - "rel/*"
- excludes: []
- bypass_teams:
- - "root"
- # Individual user (xuang7, v1.2 release manager) — listed here per INFRA
- # guidance even though the open-source asfyaml parser only documents team
- # slugs.
- - "xuang7"
- restrict_deletion: true
- restrict_force_push: true
+ target: branch
+ enforcement: active
+ conditions:
+ ref_name:
+ include:
+ - "~DEFAULT_BRANCH"
+ - "refs/heads/release/*"
+ - "refs/heads/rel/*"
+ exclude: []
+ bypass_actors:
+ # apache/root — ASF Infra team.
+ - actor_id: 118420
+ actor_type: Team
+ bypass_mode: always
+ # xuang7 — granted bypass as the v1.2 release manager.
+ - actor_id: 162244362
+ actor_type: User
+ bypass_mode: always
+ rules:
+ - type: deletion
+ - type: non_fast_forward
notifications:
commits: commits@texera.apache.org
issues: notifications@texera.apache.org