ci: fix the review bypass, allow only squash merges, delete merged branches #20804
All Vouch review confidence checks passed
Residual risk 0.14 = Change Risk (0.36) × (1 − Review Confidence (0.60)).
Review depth and reviewer attention state are adequate.
Model 1 · Change Risk (XGBoost)
Score: 0.36 · 196 lines diff across 2 files
Model 2 · Review Depth (DistilBERT)
Depth Score: 0.17 · 1 substantive comment(s)
Model 3 · Review Timing & Attention
Session adequacy: 100% · Reviewer familiarity: 35%
Bedrock Claude 3 · Risk Narration
(disconnected)
Groq Risk Narration
AWS Bedrock is currently disconnected. Generate high-confidence PR triage narration on-demand using Groq.
Model 1 · Change Risk Attribution
SHAP Weights
Diff Size
diff_size
0.316
Shallow Review Depth
shallow_review_depth
0.289
Real PR Conversation Timeline
1 comments
"Review active on #20804"
general
weight: 0.35
gianm
Description
Follow-up to #20796. ASF Infra created the
Default Branch Protectionruleset, but GitHub refused theRequire reviewruleset:GitHub doesn't accept a secret team as a bypass actor, and
druid-committersis secret. The.asf.yamlconvenience syntax can only name teams, so this PR switches the ruleset to the raw Rulesets API syntax and uses the Write repository role (actor_id: 4) as the bypass actor instead. On this repository only committers hold the Write role, granted by ASF Infra, so it needs no update when committers change. apache/airflow uses the same workaround for itsairflow-committersteam.The rule itself is unchanged: one approving review on
master, which committers can explicitly bypass.Allow only squash merges
Disables the rebase button, so squash is the only way to merge a PR. Merge commits are already disabled. Our contributing guide already expects committers to squash PRs into a single commit. The existing squash commit title and message settings stay as they are.
Delete branches after merge
Turns on
del_branch_on_merge, so a branch in theapache/druidrepository is deleted once its PR merges. This mostly affects backport and Dependabot branches; branches in contributors' forks aren't touched. Release branches are protected from deletion by theDefault Branch Protectionruleset.<hr>
This PR has: