2020-04-17 00:53:21 +08:00
|
|
|
name: 'Lock threads'
|
|
|
|
|
|
|
|
on:
|
|
|
|
schedule:
|
2021-11-03 00:43:47 +08:00
|
|
|
- cron: '0 18 * * 1'
|
|
|
|
# │ │ │ │ │
|
|
|
|
# min 0-59 ┘ │ │ │ └ weekday 0-6
|
|
|
|
# hour 0-23 ┘ │ └ month 1-12
|
|
|
|
# └ day 1-31
|
2022-06-05 08:29:28 +08:00
|
|
|
permissions:
|
|
|
|
contents: read
|
|
|
|
|
2020-04-17 00:53:21 +08:00
|
|
|
jobs:
|
|
|
|
lock:
|
2022-06-05 08:29:28 +08:00
|
|
|
permissions:
|
|
|
|
issues: write # for dessant/lock-threads to lock issues
|
|
|
|
pull-requests: write # for dessant/lock-threads to lock PRs
|
2020-04-17 00:53:21 +08:00
|
|
|
runs-on: ubuntu-latest
|
|
|
|
steps:
|
|
|
|
- uses: dessant/lock-threads@v2
|
|
|
|
with:
|
|
|
|
github-token: ${{ github.token }}
|
2021-10-24 19:38:06 +08:00
|
|
|
issue-lock-inactive-days: '365'
|
|
|
|
pr-lock-inactive-days: '365'
|
2021-11-03 01:15:30 +08:00
|
|
|
issue-exclude-labels: 'question, needs more info'
|