diff --git a/.github/lock.yml b/.github/lock.yml deleted file mode 100644 index 40a80f602..000000000 --- a/.github/lock.yml +++ /dev/null @@ -1,26 +0,0 @@ -# The "lock" app is used to lock the threads of a closed issues or prs after (x) number of days of inactivity. -# This is to help prevent long-lived issues and prs after being resolved. If users still have issues after -# a closed PR or issue thread is locked, they should create a new issue. The locking of the thread does not -# occur immedatly after an issue or PR is closed. Users will still have an opportunity to re-open the issue. -# They can always back-link to an old locked issue in a new issue if they believe it is the one and the same. - -# The number of days of inactivity before a closed issue or pr is locked -daysUntilLock: 14 - -# Skip issues and prs created before a given timestamp. ISO 8601 Timestamp `YYYY-MM-DD` or `false` to disable -skipCreatedBefore: false - -# Issues and pr with these labels will be ignored. `[]` to disable -exemptLabels: [] - -# The label to add before locking. `false` to disable -lockLabel: false - -# Comment to post before locking. Set to `false` to disable -lockComment: > - This thread has been automatically locked since there has not been - any recent activity after it was closed. Please open a new issue for - related bugs. - -# Assign `resolved` as the reason for locking. Set to `false` to disable -setLockReason: true diff --git a/.github/workflows/lock-threads.yml b/.github/workflows/lock-threads.yml new file mode 100644 index 000000000..3cf31377c --- /dev/null +++ b/.github/workflows/lock-threads.yml @@ -0,0 +1,39 @@ +name: 'Lock Threads' + +on: + schedule: + - cron: '0 0 * * *' + workflow_dispatch: + +permissions: + issues: write + pull-requests: write + discussions: write + +concurrency: + group: lock-threads + +jobs: + action: + runs-on: ubuntu-latest + steps: + - uses: dessant/lock-threads@v5 + with: + issue-inactive-days: '21' + 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. + issue-lock-reason: 'resolved' + pr-inactive-days: '21' + pr-comment: > + This pull request has been automatically locked since there + has not been any recent activity after it was closed. + Please open a new issue for related bugs. + pr-lock-reason: 'resolved' + discussion-inactive-days: '21' + discussion-comment: > + This discussion has been automatically locked since there + has not been any recent activity after it was closed. + process-only: 'issues, prs, discussions' + log-output: false