ci: close pull requests from high-volume accounts #7377
All Vouch review confidence checks passed
Residual risk 0.17 = Change Risk (0.42) × (1 − Review Confidence (0.60)).
Review depth and reviewer attention state are adequate.
Model 1 · Change Risk (XGBoost)
Score: 0.42 · 344 lines diff across 4 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.350
Shallow Review Depth
shallow_review_depth
0.289
Real PR Conversation Timeline
1 comments
"Review active on #7377"
general
weight: 0.35
comphead
Which issue does this PR close?
Closes #7364.
Rationale for this change
The per-repository creation cap in
.asf.yaml(github.pull_requests.creation_cap) limits how many PRs an account can have open here, but it cannot see activity in other repositories. Accounts that bulk-submit PRs across many repositories are a review burden we do not have capacity for.What changes are included in this PR?
.github/workflows/close_high_volume_prs.yml. Onpull_request_target(opened,reopened) it looks up the author's open PRs across GitHub and, if they have at least 50 open PRs spread across at least 20 repositories, comments, applies thehigh-volume-accountlabel and closes the PR.Botaccounts such as Dependabot) and logins in the allowlist are always skipped. Having a PR merged here does not exempt an author, because PRs from automated accounts have been merged before. A reopen by someone other than the author (a maintainer override) is also left alone.pull_request_targetsafe here. Untrusted values reach the script only through environment variables.HIGH_VOLUME_MAX_OPEN_PRS,HIGH_VOLUME_MAX_REPOS,HIGH_VOLUME_ALLOWLIST,HIGH_VOLUME_DRY_RUN.workflow_dispatchrun scans PRs that are already open. It defaults to a dry run that only reports what it would close..github/workflows/README.md.docs/source/contributor-guide/ai-policy.md, adapted from the Apache DataFusion AI policy (apache/datafusion#24510). It also covers the 3-open-PR limit and the automatic closure of bulk submissions. It is linked from the contributor guide index, the getting started page, the development guide andAGENTS.md.To observe before enforcing, set the repository variable
HIGH_VOLUME_DRY_RUNtotrue.How are these changes tested?
actionlintpasses on the new workflow,prettier --checkpasses on the new workflow and the docs, anddev/ci/check-ci-config.pypasses.MEMBERassociation both skipped the author.ubuntu-latest.