chore(ci): add PR hygiene nudge automation (#278)

This commit is contained in:
Chummy 2026-02-16 14:57:45 +08:00 committed by GitHub
parent ce7f811c0f
commit 9428d3ab74
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
3 changed files with 188 additions and 0 deletions

View file

@ -32,6 +32,8 @@ Merge-blocking checks should stay small and deterministic. Optional checks are u
- Purpose: first-time contributor onboarding messages
- `.github/workflows/stale.yml` (`Stale`)
- Purpose: stale issue/PR lifecycle automation
- `.github/workflows/pr-hygiene.yml` (`PR Hygiene`)
- Purpose: nudge stale-but-active PRs to rebase/re-run required checks before queue starvation
## Trigger Map
@ -43,6 +45,7 @@ Merge-blocking checks should stay small and deterministic. Optional checks are u
- `PR Labeler`: `pull_request_target` lifecycle events
- `Auto Response`: issue opened, `pull_request_target` opened
- `Stale`: daily schedule, manual dispatch
- `PR Hygiene`: every 12 hours schedule, manual dispatch
## Fast Triage Guide

View file

@ -98,6 +98,7 @@ Review emphasis for AI-heavy PRs:
- First maintainer triage target: within 48 hours.
- If PR is blocked, maintainer leaves one actionable checklist.
- `stale` automation is used to keep queue healthy; maintainers can apply `no-stale` when needed.
- `pr-hygiene` automation checks open PRs every 12 hours and posts a nudge when a PR has no new commits for 48+ hours and is either behind `main` or missing/failing `CI Required Gate` on the head commit.
## 7) Security and Stability Rules