Skip to content

Commit e655119

Browse files
authored
Add stale and lock workflows (#71)
1 parent 35ff776 commit e655119

File tree

2 files changed

+44
-0
lines changed

2 files changed

+44
-0
lines changed

.github/workflows/lock.yml

Lines changed: 27 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,27 @@
1+
name: Lock
2+
3+
on:
4+
schedule:
5+
- cron: "0 19 * * *"
6+
workflow_dispatch:
7+
8+
permissions:
9+
issues: write
10+
pull-requests: write
11+
12+
concurrency:
13+
group: lock
14+
15+
jobs:
16+
lock:
17+
runs-on: ubuntu-latest
18+
steps:
19+
- uses: dessant/lock-threads@v5.0.1
20+
with:
21+
pr-inactive-days: "1"
22+
pr-lock-reason: ""
23+
exclude-any-pr-labels: keep-open
24+
25+
issue-inactive-days: "1"
26+
issue-lock-reason: ""
27+
exclude-any-issue-labels: keep-open

.github/workflows/stale.yml

Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,17 @@
1+
name: 'Close stale issues'
2+
on:
3+
schedule:
4+
- cron: '50 18 * * *'
5+
6+
jobs:
7+
stale:
8+
runs-on: ubuntu-latest
9+
steps:
10+
- uses: actions/stale@v9.1.0
11+
with:
12+
stale-issue-message: 'As there has been no activity on this issue for 30 days, I am marking it as stale. If you think this is a mistake, please comment below and I will remove the stale label.'
13+
close-issue-message: 'This issue has been closed due to inactivity. If you think this is a mistake, please comment below.'
14+
days-before-stale: 30
15+
days-before-close: 5
16+
stale-issue-label: 'stale'
17+
exempt-issue-labels: 'not-stale'

0 commit comments

Comments
 (0)