Skip to content

Commit c14d7f4

Browse files
authored
Add Issue Lock and Answered Bots (#6019)
1 parent dd6543c commit c14d7f4

File tree

2 files changed

+37
-0
lines changed

2 files changed

+37
-0
lines changed

.github/answered.yml

Lines changed: 20 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,20 @@
1+
# This action automatically schedules issues to be closed that have been
2+
# labeled as answered if there is no activity on them for 30 days. This takes
3+
# care of the common usecase of an issue being answered to the best of our
4+
# ability and no other follow-up from the submitter.
5+
name: 'Close answered issues'
6+
on:
7+
schedule:
8+
- cron: '30 1 * * *'
9+
10+
jobs:
11+
stale:
12+
runs-on: ubuntu-latest
13+
steps:
14+
- uses: actions/stale@v3
15+
with:
16+
skip-stale-issue-message: true
17+
days-before-stale: 30
18+
days-before-close: 7
19+
stale-issue-label: 'status:Closing as Answered'
20+
only-issue-labels: 'status:Answered'

.github/workflows/lock.yml

Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,17 @@
1+
name: 'Lock Closed Threads'
2+
3+
on:
4+
schedule:
5+
- cron: '0 0 * * *'
6+
7+
jobs:
8+
lock:
9+
runs-on: ubuntu-latest
10+
steps:
11+
- uses: dessant/lock-threads@v2
12+
with:
13+
github-token: ${{ github.token }}
14+
issue-lock-inactive-days: '180'
15+
issue-lock-labels: 'status:resolved-locked'
16+
pr-lock-inactive-days: '180'
17+
pr-lock-labels: 'status:resolved-locked'

0 commit comments

Comments
 (0)