Running a scheduled task to lock inactive issues over 30 days #90
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 Issues" | |
run-name: "Running a scheduled task to lock inactive issues over 30 days" | |
on: | |
schedule: | |
- cron: "0 0 * * 0" | |
permissions: | |
issues: "write" | |
jobs: | |
lock-inactive-issues: | |
runs-on: "ubuntu-latest" | |
steps: | |
- uses: "dessant/lock-threads@v5" | |
with: | |
github-token: "${{ secrets.GITHUB_TOKEN }}" | |
issue-comment: "Due to inactivity, this issue will be locked and marked as resolved. If you have any further questions or inquiries, please feel free to open a new issue." | |
issue-inactive-days: "30" | |
issue-lock-reason: "resolved" | |
log-output: "true" |