Repository navigation
Commit 207e922
ci: add workflow to close PRs inactive for 2+ weeks (#253)
## Summary
- Adds `.github/workflows/stale.yml` that uses `actions/stale@v9` to
close PRs inactive for 14 days (7-day stale warning + 7-day close
window).
- Mirrors the `usedetail/detail` stale workflow pattern, scaled from 30
→ 14 days.
- PRs labeled `do-not-close` are exempt. Runs daily at 00:00 UTC; also
dispatchable manually.
## Test plan
- [ ] Trigger the workflow manually via `workflow_dispatch` and confirm
it runs without errors
- [ ] Verify an open PR with no `do-not-close` label and no activity for
7+ days gets the `stale` label and warning comment
- [ ] Verify a PR labeled `do-not-close` is skipped
- [ ] Confirm PRs with activity inside the 14-day window are left alone
🤖 Generated with [Claude Code](https://claude.com/claude-code)
<!-- devin-review-badge-begin -->
---
<a href="https://app.devin.ai/review/usedetail/cli/pull/253"
target="_blank">
<picture>
<source media="(prefers-color-scheme: dark)"
srcset="https://static.devin.ai/assets/gh-open-in-devin-review-dark.svg?v=1">
<img
src="https://static.devin.ai/assets/gh-open-in-devin-review-light.svg?v=1"
alt="Open in Devin Review">
</picture>
</a>
<!-- devin-review-badge-end -->
Co-authored-by: Claude Opus 4.7 (1M context) <noreply@anthropic.com>1 parent 54861b5 commit 207e922
1 file changed
Lines changed: 26 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
| 1 | + | |
| 2 | + | |
| 3 | + | |
| 4 | + | |
| 5 | + | |
| 6 | + | |
| 7 | + | |
| 8 | + | |
| 9 | + | |
| 10 | + | |
| 11 | + | |
| 12 | + | |
| 13 | + | |
| 14 | + | |
| 15 | + | |
| 16 | + | |
| 17 | + | |
| 18 | + | |
| 19 | + | |
| 20 | + | |
| 21 | + | |
| 22 | + | |
| 23 | + | |
| 24 | + | |
| 25 | + | |
| 26 | + | |
0 commit comments