Skip to content

Commit 1661263

Browse files
Create stale issue management workflow (#25)
Co-authored-by: Olivér Falvai <[email protected]>
1 parent 92907f5 commit 1661263

File tree

1 file changed

+56
-0
lines changed

1 file changed

+56
-0
lines changed
Lines changed: 56 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,56 @@
1+
name: Stale Issues Workflow
2+
3+
on:
4+
# Allows manually running
5+
# https://docs.github.com/en/actions/reference/events-that-trigger-workflows#manual-events
6+
workflow_dispatch:
7+
8+
schedule:
9+
# Runs at 08:00 UTC every day
10+
# https://docs.github.com/en/actions/reference/events-that-trigger-workflows#schedule
11+
- cron: '0 8 * * *'
12+
13+
jobs:
14+
stale:
15+
runs-on: ubuntu-latest
16+
steps:
17+
# https://github.com/actions/stale
18+
- uses: actions/stale@v3
19+
with:
20+
repo-token: ${{ secrets.CORESTEPS_BOT_GITHUB_TOKEN }}
21+
# do not manage PRs
22+
days-before-pr-stale: -1
23+
days-before-pr-close: -1
24+
# stale issue config
25+
exempt-issue-labels: 'bug'
26+
days-before-issue-stale: 90
27+
days-before-issue-close: 21
28+
stale-issue-message: |
29+
Hello there, I'm a bot. On behalf of the community I thank you for opening this issue.
30+
31+
To help our human contributors focus on the most relevant reports, I check up on old issues to see if they're still relevant.
32+
This issue has had no activity for 90 days, so I marked it as stale.
33+
34+
The community would appreciate if you could check if the issue still persists. If it isn't, please close it.
35+
If the issue persists, and you'd like to remove the stale label, you simply need to leave a comment. Your comment can be as simple as "still important to me".
36+
37+
If no comment left within 21 days, this issue will be closed.
38+
close-issue-message: >
39+
I'll close this issue as it doesn't seem to be relevant anymore.
40+
41+
We believe an old issue probably has a bunch of context that's no longer relevant, therefore, if the problem still persists, please open a new issue.
42+
stale-issue-label: stale
43+
# https://github.com/jakejarvis/wait-action
44+
# Wait 1m to make sure lock-threads will actually lock the issue where stale just recently left a message.
45+
- uses: jakejarvis/wait-action@master
46+
with:
47+
time: '1m'
48+
# https://github.com/dessant/lock-threads
49+
- uses: dessant/lock-threads@v2
50+
with:
51+
github-token: ${{ secrets.CORESTEPS_BOT_GITHUB_TOKEN }}
52+
# do not manage PRs
53+
process-only: issues
54+
# stale issue config
55+
issue-lock-inactive-days: 0 # immediately lock closed issues
56+
issue-lock-reason: ''

0 commit comments

Comments
 (0)