Skip to content

Commit 7ed521d

Browse files
authored
ci: add stale (#457)
1 parent 44ad810 commit 7ed521d

File tree

1 file changed

+32
-0
lines changed

1 file changed

+32
-0
lines changed

.github/workflows/stale.yml

Lines changed: 32 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,32 @@
1+
name: "Close stale issues and PRs"
2+
3+
on:
4+
schedule:
5+
- cron: "0 6 * * *"
6+
workflow_dispatch: {}
7+
8+
permissions:
9+
issues: write
10+
pull-requests: write
11+
12+
jobs:
13+
stale:
14+
runs-on: ubuntu-latest
15+
steps:
16+
- uses: actions/stale@v9
17+
with:
18+
repo-token: ${{ secrets.GITHUB_TOKEN }}
19+
days-before-stale: 45
20+
days-before-close: 10
21+
stale-issue-label: stale
22+
stale-pr-label: stale
23+
stale-issue-message: |
24+
Hi there! We haven’t seen activity here for 45 days, so I’m marking this issue as stale.
25+
If you’d like to keep it open, please leave a comment within 10 days. Thanks!
26+
stale-pr-message: |
27+
Hi there! We haven’t seen activity on this pull request for 45 days, so I’m marking it as stale.
28+
If you’d like to keep it open, please leave a comment within 10 days. Thanks!
29+
close-issue-message: |
30+
Hi there! We haven’t heard anything for 10 days, so I’m closing this issue. Feel free to reopen if you’d like to continue the discussion. Thanks!
31+
close-pr-message: |
32+
Hi there! We haven’t heard anything for 10 days, so I’m closing this pull request. Feel free to reopen if you’d like to continue working on it. Thanks!

0 commit comments

Comments
 (0)