Lock inactive threads #1927
Workflow file for this run
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: 'Lock inactive threads' | |
on: | |
# Chosen to be just before London wakes up and way past San Francisco's bedtime. | |
schedule: | |
- cron: '0 8 * * 1-5' # This is in UTC. | |
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 }} | |
issue-inactive-days: '7' | |
issue-lock-reason: 'resolved' | |
issue-comment: > | |
Because there has been no activity on this issue for 7 days since it was closed, it has | |
been automatically locked. Please open a new issue if it requires a follow up. | |
pr-inactive-days: '14' | |
pr-lock-reason: 'resolved' | |
pr-comment: > | |
Because there has been no activity on this PR for 14 days since it was merged, it has | |
been automatically locked. Please open a new issue if it requires a follow up. |