On a daily schedule, scans open pull requests and nudges the ones that have gone quiet — a gentle reminder past one threshold, a stronger 'flag for closure' past a second. Posts a digest of what it found. Advisory: it comments only, never closes PRs automatically. Set your repository on the Clone step after importing.
- Identifier
stale-pr-reaper- Version
- 1.0.1
- Steps
- 3
- Triggers
- 1
- pull-requests
- maintenance
- scheduled
- hygiene
- automated
When it runs
schedule.daily- Schedule
- Every day at 08:00 UTC
0 8 * * * - Timezone
- UTC
The pipeline
The graph below is the one the workflow opens with in the builder — same steps, same layout, drawn on the same canvas. The run playing through it is a simulation; the branches and conditions are real.
- 01Daily Schedule (08:00 UTC)
triggerThe event that starts the run.
- 02Clone Repository ⚠️ SET YOUR REPO
git.cloneShallow-clones the repository at the right ref.
- 03Scan & Nudge Stale PRs
agent.runOne agent works the task with its toolkit.
The agent
Stale PR Reaper
- Base type
- Senior Developer
- Temperature
- 0.2
- Max iterations
- 40
- Tools
- 6
Git provider · 5
list_pull_requestsList Pull Requests · readread_pull_requestRead Pull Request · readadd_comment_to_pull_requestAdd Comment to Pull Request · writeadd_labelsAdd Labels · writeremove_labelRemove Label · write
Status · 1
update_statusUpdate Status · write
Related playbooks
API Deprecation Sweep
Monthly scan of deprecated endpoints, fields, and headers that files removal tickets for anything past its sunset date.
PR Triage
Classifies new PRs by type, size, and risk the moment they open or go ready-for-review.
Stale Issue Reaper
Weekly sweep that classifies quiet issues by reason, nudges them, and flags the oldest for closure.