Skip to content

Commit 7510996

Browse files
authored
chore: add workflow to close stale issues / pull requests (#139)
Signed-off-by: Stefan Dej <meteyou@gmail.com>
1 parent f4bd84d commit 7510996

File tree

1 file changed

+50
-0
lines changed

1 file changed

+50
-0
lines changed

.github/workflows/stale.yml

+50
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,50 @@
1+
name: 'Close stale issues or PRs'
2+
3+
# Both `issue_comment` and `scheduled` event types are required for this Action
4+
# to work properly.
5+
on:
6+
issue_comment:
7+
types: [created]
8+
schedule:
9+
- cron: '*/5 * * * *'
10+
11+
permissions:
12+
issues: write
13+
pull-requests: write
14+
15+
jobs:
16+
stale:
17+
runs-on: ubuntu-latest
18+
steps:
19+
- uses: actions/stale@v5
20+
with:
21+
days-before-stale: 14
22+
days-before-close: 7
23+
exempt-all-milestones: true
24+
close-issue-reason: not_planned
25+
only-labels: '❔ User Input'
26+
labels-to-remove-when-unstale: '❔ User Input,💤 Stale'
27+
stale-issue-label: '💤 Stale'
28+
stale-pr-label: '💤 Stale'
29+
stale-issue-message: |
30+
Ahoi!
31+
It looks like there hasn't been any recent updates on
32+
this issue. If you created this issue and no longer
33+
consider it to get merged, then please login to github
34+
and close it. Otherwise, if there is no further activity
35+
on this issue, it will be automatically closedwithin the
36+
next 7 days.
37+
Fair wind and a following sea!
38+
~ Your friendly MainsailGithubBot
39+
*PS: I'm just an automated script, not a real sailor.*
40+
stale-pr-message: |
41+
Ahoi!
42+
It looks like there hasn't been any recent updates on
43+
this pull request. If you created this pull request and
44+
no longer consider it to get merged, then please login
45+
to github and close it. Otherwise, if there is no further
46+
activity on this pull request, it will be automatically
47+
closed within the next 7 days.
48+
Fair wind and a following sea!
49+
~ Your friendly MainsailGithubBot
50+
*PS: I'm just an automated script, not a real sailor.*

0 commit comments

Comments
 (0)