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:
|
2023-02-01 10:00:20 +08:00
|
|
|
- uses: dessant/lock-threads@v4
|
2020-04-17 00:53:21 +08:00
|
|
|
with:
|
|
|
|
github-token: ${{ github.token }}
|
2023-02-01 10:00:20 +08:00
|
|
|
issue-inactive-days: '365'
|
|
|
|
pr-inactive-days: '365'
|
|
|
|
exclude-any-issue-labels: 'question, needs more info'
|