-
Notifications
You must be signed in to change notification settings - Fork 3.8k
44 lines (40 loc) · 1.74 KB
/
lock.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
name: 'Lock Inactive Threads'
on:
schedule:
# midnight UTC, every Wednesday
- cron: '0 0 * * 3'
# allow manual triggering from GitHub UI
workflow_dispatch:
permissions:
issues: write
pull-requests: write
concurrency:
group: lock
jobs:
action:
runs-on: ubuntu-latest
steps:
- uses: dessant/lock-threads@v4
with:
github-token: ${{ github.token }}
# after how many days of inactivity should a closed issue/PR be locked?
issue-inactive-days: '90'
pr-inactive-days: '90'
# do not close feature request issues...
# we close those but track them in https://github.com/microsoft/LightGBM/issues/2302
exclude-any-issue-labels: '"feature request"'
# what labels should be removed prior to locking?
remove-issue-labels: 'awaiting response,awaiting review,blocking,in progress'
remove-pr-labels: 'awaiting response,awaiting review,blocking,in progress'
# what message should be posted prior to locking?
issue-comment: >
This issue has been automatically locked since there has not been any recent activity since it was closed.
To start a new related discussion, open a new issue at https://github.com/microsoft/LightGBM/issues
including a reference to this.
pr-comment: >
This pull request has been automatically locked since there has not been any recent activity since it was closed.
To start a new related discussion, open a new issue at https://github.com/microsoft/LightGBM/issues
including a reference to this.
# what shoulld the locking status be?
issue-lock-reason: 'resolved'
pr-lock-reason: 'resolved'