ci: follow up on open community pull requests
M4
4h ago+1871+1871+0123456789012345678901234567890123456789-1-1-0123456789
Package
None: this changes CI only. It adds the PR follow-up bot StableBar already runs (stablebox/StableBar#946).
Changes
.github/workflows/community-pr-followup.ymlruns once a day (09:23 UTC) on open pull requests from outside the team (not OWNER, MEMBER, COLLABORATOR or a bot):- Waiting on the author (failing checks, merge conflicts, requested changes or unresolved review threads from the team or a review bot): after 7 quiet days it adds
waiting-for-authorand posts a check-in. Without an update 7 days later, it closes the pull request. Drafts get 14 days for each step. - Waiting on maintainers (ready for review, or a first-time contributor's CI waiting for approval): it never closes these. After 4 days it adds
needs-reviewand pings the requested reviewers, or the earlier reviewers, or the*owner inCODEOWNERS. waiting-for-authorcomes off as soon as the author pushes, reopens or marks the pull request ready.keep-openpauses follow-ups.- A manual run (
workflow_dispatch) is a dry run by default and can target a single pull request.
- Waiting on the author (failing checks, merge conflicts, requested changes or unresolved review threads from the team or a review bot): after 7 quiet days it adds
.github/scripts/community-pr-followup.mjsand its tests hold the logic. It's StableBar's version with these differences:- It leaves out the Visual review /
visual-okhandling, since the store has no screens check. - Only the author's and the team's comments, and a bot's that opened the thread, decide whose court an unresolved review thread is in. In StableBar's version, any reply from someone other than the author counted against the author. Someone outside the team could reply, get CodeRabbit to reply, or comment from an account deleted later, and get someone else's pull request nudged and then closed. Threads that cubic or CodeRabbit open still wait on the author.
- A check-in marker counts only in a comment from GitHub Actions, the account the workflow comments as. StableBar's version read it from any bot, and anyone can get a bot to repeat text.
- stablebox/StableBar#997 makes the same two fixes there.
- Only the author's push clears
waiting-for-author. A maintainer's push to the contributor's branch isn't the update the author was asked for.
- It leaves out the Visual review /
ci.yml: Lint now runsnode --test .github/scripts/*.test.mjs. The follow-up workflow runs the default branch's copy of the script, so this is where a change to it gets tested before merging.CONTRIBUTING.mdexplains the policy.
The workflow never checks out or runs pull request code. Both jobs check out only .github/scripts and .github/CODEOWNERS from the default branch, with persist-credentials: false. Manual inputs reach the script through env.
The bot creates waiting-for-author and needs-review the first time it needs them. keep-open has to be created by hand the first time it's used.
Access
None. No package changes.
Testing
node --test .github/scripts/*.test.mjs: 15 tests pass. The tests for review threads, markers and clearing the label fail against StableBar's version of the module.actionlint .github/workflows/*.yml: no findings../scripts/test.sh: all passed.- Not checked: a real run against this repository's pull requests. After merging, a manual dry run from the Actions tab shows what the first daily run would do. That run can post check-ins and reminders on pull requests that are already open, but it can't close any, because closing needs a check-in posted 7 days earlier.
Claude Opus 5.5 via Claude Code
Summary by CodeRabbit
- New Features
- Community pull requests awaiting an author receive a check-in after 7 idle days and may close 7 days later without an update. Drafts follow 14-day intervals.
- Pull requests awaiting maintainers receive a reminder and
needs-reviewlabel after 4 idle days; they are not closed automatically. - Pull requests marked
keep-openare excluded from follow-ups. Thewaiting-for-authorlabel is cleared when the author updates their pull request.
- Documentation
- Contributor guidance now describes follow-up timing, labels, and the
keep-openoption.
- Contributor guidance now describes follow-up timing, labels, and the