ci: follow up on open community pull requests
Merged
M4
4d ago+1788+1788+0123456789012345678901234567890123456789-0-0-0123456789
Problem
Open community pull requests can sit idle without action—either blocked on failing checks, merge conflicts or review feedback with no follow-up to the contributor, or ready and waiting on a maintainer review, visual-ok, or first-time CI approval.
Changes
- Added
.github/workflows/community-pr-followup.ymlrunning daily from the default branch (plusworkflow_dispatchwithdry_runand optionalpull_requesttargeting) so fork pull requests never run their own copy, and apull_request_targetjob that clearswaiting-for-authorimmediately onsynchronize,reopenedandready_for_review. - Added
.github/scripts/community-pr-followup.mjsto classify non-bot PRs from outsideOWNER/MEMBER/COLLABORATOR:- Waiting on author (ready PR): labels
waiting-for-authorand posts a blocker-specific nudge after 7 days of human inactivity, then auto-closes 7 days later if still silent. - Draft PRs: longer window—nudges after 14 days and auto-closes 14 days later.
- Waiting on maintainers: ready PRs with no author blockers (including first-time
action_requiredCI runs,Visual reviewwaiting forvisual-ok, re-reviews or thread replies) never go stale or close; labelsneeds-reviewand reminds requested reviewers (falling back to prior reviewers orCODEOWNERS) once after 4 days. - Ignores bot noise when measuring idle time, embeds tamper-resistant bot markers, auto-creates managed labels if missing, and pauses all actions when
keep-openis applied.
- Waiting on author (ready PR): labels
- Added unit tests in
.github/scripts/community-pr-followup.test.mjs. - Documented the policy in
CONTRIBUTING.mdandDECISIONS.md.
Testing
- Ran
node --test .github/scripts/*.test.mjs(all 246 tests passing, including 13 new tests incommunity-pr-followup.test.mjs). - Validated
.github/workflows/community-pr-followup.ymlYAML syntax and ranscripts/check.sh --commitsandscripts/check.sh --quick. - Did not run the workflow live on GitHub Actions yet; once merged,
workflow_dispatchdefaults todry_run: truefor safe verification against open PRs.
Merging
Merge commit (single commit on this branch).
Gemini 4 Neon via T3 Code