ci: follow up on open community pull requests

Merged
M4
4d ago
+1788-0

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.yml running daily from the default branch (plus workflow_dispatch with dry_run and optional pull_request targeting) so fork pull requests never run their own copy, and a pull_request_target job that clears waiting-for-author immediately on synchronize, reopened and ready_for_review.
  • Added .github/scripts/community-pr-followup.mjs to classify non-bot PRs from outside OWNER/MEMBER/COLLABORATOR:
    • Waiting on author (ready PR): labels waiting-for-author and 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_required CI runs, Visual review waiting for visual-ok, re-reviews or thread replies) never go stale or close; labels needs-review and reminds requested reviewers (falling back to prior reviewers or CODEOWNERS) 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-open is applied.
  • Added unit tests in .github/scripts/community-pr-followup.test.mjs.
  • Documented the policy in CONTRIBUTING.md and DECISIONS.md.

Testing

  • Ran node --test .github/scripts/*.test.mjs (all 246 tests passing, including 13 new tests in community-pr-followup.test.mjs).
  • Validated .github/workflows/community-pr-followup.yml YAML syntax and ran scripts/check.sh --commits and scripts/check.sh --quick.
  • Did not run the workflow live on GitHub Actions yet; once merged, workflow_dispatch defaults to dry_run: true for safe verification against open PRs.

Merging

Merge commit (single commit on this branch).

Gemini 4 Neon via T3 Code