Skip to content

lock closed issues #199

lock closed issues

lock closed issues #199

# This workflow is copied from Flutter
# https://github.com/flutter/flutter/blob/3.16.0/.github/workflows/lock.yaml
name: lock closed issues
permissions:
issues: write
on:
schedule:
- cron: '0 * * * *'
jobs:
lock:
permissions:
issues: write
runs-on: ubuntu-latest
if: ${{ github.repository == 'leancodepl/patrol' }}
steps:
- uses: dessant/lock-threads@v5
with:
process-only: issues
github-token: ${{ github.token }}
# Number of days of inactivity before a closed issue is locked.
issue-inactive-days: 7
issue-comment: >
This issue has been automatically locked since there has not been
any recent activity after it was closed. If you are still
experiencing a similar problem, please file a new issue. Make
sure to follow the template and provide all the information
necessary to reproduce the issue.