Skip to content

Commit 0bab95b

Browse files
authored
Create stale.yml
Adding this check for this repo to clean up old issues if they are no longer relevant by adding 'stale' label. Copied this from another repo that uses this same process.
1 parent 7113ee6 commit 0bab95b

File tree

1 file changed

+25
-0
lines changed

1 file changed

+25
-0
lines changed

.github/workflows/stale.yml

Lines changed: 25 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,25 @@
1+
2+
name: Mark stale issues and pull requests
3+
4+
on:
5+
schedule:
6+
- cron: "0 0 * * *"
7+
8+
jobs:
9+
stale:
10+
11+
runs-on: ubuntu-latest
12+
13+
steps:
14+
- uses: actions/stale@v3
15+
with:
16+
repo-token: ${{ secrets.GITHUB_TOKEN }}
17+
stale-issue-message: "👋 This issue has been marked as stale because it has been open with no activity. You can: comment on the issue or remove the stale label to hold stale off for a while, add the `Keep` label to hold stale off permanently, or do nothing. If you do nothing this issue will be closed eventually by the stale bot."
18+
stale-issue-label: "Stale"
19+
exempt-issue-labels: "Keep"
20+
stale-pr-message: "👋 This pull request has been marked as stale because it has been open with no activity. You can: comment on the issue or remove the stale label to hold stale off for a while, add the `Keep` label to hold stale off permanently, or do nothing. If you do nothing this pull request will be closed eventually by the stale bot."
21+
stale-pr-label: "Stale"
22+
exempt-pr-labels: "Keep, epic, initiative, GHAE"
23+
days-before-stale: 30 # 1 month, which accounts for "now" and "next", but anything beyond is "never"
24+
days-before-close: 5
25+
ascending: true

0 commit comments

Comments
 (0)