Skip to content

Commit 5e2d536

Browse files
authored
chore (ci): add stale Action (#2302)
**Description** This PR adds a scheduled stale-bot workflow (actions/stale@v9) that automatically marks inactive issues and pull requests as stale and closes them if they stay inactive. How it works Runs once a day at 02:00 UTC (cron schedule). An issue or PR with no activity for 60 days is labeled Stale and a comment is posted. After being marked stale, there is a 7-day cooling period: commenting (or any activity) removes the label and resets the timer; otherwise the item is closed automatically. **Comment posted on stale items** Issues ``` This issue has been stale for 60 days and will be closed automatically in 7 days. Comment to keep it open. ``` Pull requests ``` This PR has been stale for 60 days and will be closed automatically in 7 days. Comment to keep it open. ```
1 parent 5df4188 commit 5e2d536

1 file changed

Lines changed: 13 additions & 0 deletions

File tree

.github/workflows/stale.yml

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,13 @@
1+
name: Close stale issues and PRs
2+
on:
3+
schedule:
4+
- cron: 00 02 * * *
5+
6+
permissions:
7+
issues: write
8+
pull-requests: write
9+
10+
jobs:
11+
stale:
12+
name: Stale
13+
uses: dgraph-io/.github/.github/workflows/stale.yml@main

0 commit comments

Comments
 (0)