Add lock threads cron job
This commit is contained in:
@@ -0,0 +1,35 @@
|
||||
name: LockThreads
|
||||
|
||||
on:
|
||||
schedule:
|
||||
- cron: "50 * * * *"
|
||||
workflow_dispatch:
|
||||
|
||||
permissions:
|
||||
issues: write
|
||||
pull-requests: write
|
||||
|
||||
concurrency:
|
||||
group: lock-threads
|
||||
|
||||
jobs:
|
||||
action:
|
||||
runs-on: ubuntu-latest
|
||||
steps:
|
||||
- uses: dessant/lock-threads@v5
|
||||
with:
|
||||
github-token: ${{ github.token }}
|
||||
issue-inactive-days: 120
|
||||
issue-comment: >
|
||||
This issue has been automatically locked since there has not been
|
||||
any recent activity after it was closed. Please open a new issue
|
||||
for related bugs or feature requests.
|
||||
issue-lock-reason: "Resolved"
|
||||
pr-inactive-days: 120
|
||||
pr-comment: >
|
||||
This pull request thread has been automatically locked since there
|
||||
has not been any recent activity after it was closed. Please open
|
||||
an issue for any related bugs or feature requests.
|
||||
pr-lock-reason: "Completed"
|
||||
process-only: "issues. prs"
|
||||
log-output: false
|
||||
Reference in New Issue
Block a user