Skip to content

Commit 9003045

Browse files
authored
Action to close stale issues and PRs (#87)
1 parent 8e6fd79 commit 9003045

File tree

1 file changed

+21
-0
lines changed

1 file changed

+21
-0
lines changed

.github/workflows/stale.yml

Lines changed: 21 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,21 @@
1+
---
2+
name: "Close stale issues and PRs"
3+
on:
4+
schedule:
5+
- cron: "30 1 * * *"
6+
7+
jobs:
8+
stale:
9+
runs-on: ubuntu-latest
10+
steps:
11+
- uses: actions/stale@5bef64f19d7facfb25b37b414482c7164d639639 # v9
12+
with:
13+
stale-issue-label: stale
14+
stale-pr-label: stale
15+
days-before-stale: 60
16+
days-before-close: 14
17+
exempt-issue-labels: "good first issue"
18+
close-issue-label: closed-stale
19+
close-pr-label: closed-stale
20+
stale-issue-message: "This issue is stale because it has been open 60 days with no activity. Remove the `stale` label, or leave a comment, or this will be closed in 14 days."
21+
stale-pr-message: "This pull request is stale because it has been open 60 days with no activity. Remove the `stale` label, or leave a comment, or this will be closed in 14 days."

0 commit comments

Comments
 (0)