diff options
author | Nicholas Marriott <nicholas.marriott@gmail.com> | 2024-03-06 21:45:26 +0000 |
---|---|---|
committer | Nicholas Marriott <nicholas.marriott@gmail.com> | 2024-03-06 21:45:26 +0000 |
commit | bdb6321229ac122c3c5f341b606f26cbee0d74df (patch) | |
tree | c1d375065015bea559805175f7dcbd426d29f484 | |
parent | f3f1c3db58292f0899bb6cfe69b17b62d4368777 (diff) |
Update lock.yml.
-rw-r--r-- | .github/workflows/lock.yml | 29 |
1 files changed, 17 insertions, 12 deletions
diff --git a/.github/workflows/lock.yml b/.github/workflows/lock.yml index a4d3e9b5..81b445bc 100644 --- a/.github/workflows/lock.yml +++ b/.github/workflows/lock.yml @@ -3,27 +3,32 @@ name: 'Lock Threads' on: schedule: - cron: '0 0 * * *' + workflow_dispatch: permissions: - contents: read + issues: write + pull-requests: write + discussions: write + +concurrency: + group: lock-threads jobs: - lock: - permissions: - issues: write # for dessant/lock-threads to lock issues - pull-requests: write # for dessant/lock-threads to lock PRs + action: runs-on: ubuntu-latest steps: - - uses: dessant/lock-threads@v2 + - uses: dessant/lock-threads@v5 with: github-token: ${{ github.token }} - issue-lock-inactive-days: '30' - pr-lock-inactive-days: '60' - issue-lock-comment: > + issue-inactive-days: '30' + 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. - pr-lock-comment: > + pr-inactive-days: '60' + 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. + discussion-inactive-days: '60' + discussion-comment: > + This discussion has been automatically locked since there + has not been any recent activity after it was closed. |