From 6b861d83d5175d8a6eb56274bfed387843817561 Mon Sep 17 00:00:00 2001 From: techknowlogick Date: Thu, 4 May 2023 14:41:13 -0400 Subject: [PATCH 1/3] automate locking closed threads --- .github/workflows/lock.yml | 22 ++++++++++++++++++++++ 1 file changed, 22 insertions(+) create mode 100644 .github/workflows/lock.yml diff --git a/.github/workflows/lock.yml b/.github/workflows/lock.yml new file mode 100644 index 0000000000000..076e16bc8e6b3 --- /dev/null +++ b/.github/workflows/lock.yml @@ -0,0 +1,22 @@ +name: 'Lock Threads' + +on: + schedule: + # Run once a day + - cron: '0 0 * * *' + workflow_dispatch: + +permissions: + issues: write + pull-requests: write + +concurrency: + group: lock + +jobs: + action: + runs-on: ubuntu-latest + steps: + - uses: dessant/lock-threads@v4 + with: + issue-inactive-days: '45' From 5963639344985e1880490ac1a4d6b6eb6d822e52 Mon Sep 17 00:00:00 2001 From: techknowlogick Date: Thu, 4 May 2023 16:29:32 -0400 Subject: [PATCH 2/3] Apply silverwind feedback from code review Co-authored-by: silverwind --- .github/workflows/lock.yml | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/.github/workflows/lock.yml b/.github/workflows/lock.yml index 076e16bc8e6b3..2e132b95fed8a 100644 --- a/.github/workflows/lock.yml +++ b/.github/workflows/lock.yml @@ -2,8 +2,7 @@ name: 'Lock Threads' on: schedule: - # Run once a day - - cron: '0 0 * * *' + - cron: '0 0 * * *' # Run once a day workflow_dispatch: permissions: @@ -19,4 +18,4 @@ jobs: steps: - uses: dessant/lock-threads@v4 with: - issue-inactive-days: '45' + issue-inactive-days: 45 From 116f7856960f6bc71eb39623643fa838d390be4d Mon Sep 17 00:00:00 2001 From: techknowlogick Date: Thu, 4 May 2023 21:34:40 -0400 Subject: [PATCH 3/3] Delete lock.yml --- .github/lock.yml | 23 ----------------------- 1 file changed, 23 deletions(-) delete mode 100644 .github/lock.yml diff --git a/.github/lock.yml b/.github/lock.yml deleted file mode 100644 index 6beadcaf11095..0000000000000 --- a/.github/lock.yml +++ /dev/null @@ -1,23 +0,0 @@ -# Configuration for Lock Threads - https://github.com/dessant/lock-threads-app - -# Number of days of inactivity before a closed issue or pull request is locked -daysUntilLock: 60 - -# Skip issues and pull requests created before a given timestamp. Timestamp must -# follow ISO 8601 (`YYYY-MM-DD`). `false` is disabled -skipCreatedBefore: false - -# Issues and pull requests with these labels will be ignored. -exemptLabels: [] - -# Label to add before locking, such as `outdated`. `false` is disabled -lockLabel: false - -# Comment to post before locking. -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 and link to relevant comments in this thread. - -# Assign `resolved` as the reason for locking. Set to `false` to disable -setLockReason: true