🔒 Lock closed issues and PRs #171
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
# @format | |
--- | |
name: 🔒 Lock closed issues and PRs | |
on: | |
schedule: | |
- cron: "30 2 * * *" | |
jobs: | |
lock: | |
name: 🔐 Lock closed issues and PRs | |
runs-on: ubuntu-latest | |
permissions: | |
issues: write | |
pull-requests: write | |
concurrency: | |
group: ci-${{ github.workflow }}-${{ github.head_ref || github.run_id }} | |
steps: | |
- uses: dessant/lock-threads@v5 | |
with: | |
github-token: ${{ github.token }} | |
issue-inactive-days: "30" | |
issue-lock-reason: "" | |
issue-comment: > | |
Issue closed and locked due to lack of activity. If you encounter this same issue, please open a new issue and refer to this closed one. | |
pr-inactive-days: "7" | |
pr-lock-reason: "" | |
pr-comment: > | |
Pull Request closed and locked due to lack of activity. If you'd like to build on this closed PR, you can clone it using this method: https://stackoverflow.com/a/14969986 Then open a new PR, referencing this closed PR in your message. |