From c7128dedf2afa29097b8cce073708301fe7e8c2f Mon Sep 17 00:00:00 2001 From: James Cole Date: Sun, 2 May 2021 15:00:40 +0200 Subject: [PATCH 1/5] Lock app. --- .github/workflows/lock.yml | 15 +++++++++++++++ 1 file changed, 15 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 0000000000..de5c5db77d --- /dev/null +++ b/.github/workflows/lock.yml @@ -0,0 +1,15 @@ +name: Lock Threads +uses: dessant/lock-threads@v2.0.1 + +on: + schedule: + - cron: '0 * * * *' + +jobs: + lock: + runs-on: ubuntu-latest + steps: + - uses: dessant/lock-threads@v2 + with: + github-token: ${{ github.token }} + issue-lock-inactive-days: '90' From 8c0005e460698bb236c50bf7d76d9d8f5c7713a7 Mon Sep 17 00:00:00 2001 From: James Cole Date: Sun, 2 May 2021 15:00:56 +0200 Subject: [PATCH 2/5] Remove old lock file. --- .github/lock.yml | 35 ----------------------------------- 1 file changed, 35 deletions(-) delete mode 100644 .github/lock.yml diff --git a/.github/lock.yml b/.github/lock.yml deleted file mode 100644 index 8935e94dc8..0000000000 --- a/.github/lock.yml +++ /dev/null @@ -1,35 +0,0 @@ -# Configuration for Lock Threads - https://github.com/dessant/lock-threads - -# Number of days of inactivity before a closed issue or pull request is locked -daysUntilLock: 90 - -# Skip issues and pull requests created before a given timestamp. Timestamp must -# follow ISO 8601 (`YYYY-MM-DD`). Set to `false` to disable -skipCreatedBefore: false - -# Issues and pull requests with these labels will be ignored. Set to `[]` to disable -exemptLabels: [] - -# Label to add before locking, such as `outdated`. Set to `false` to disable -lockLabel: false - -# Comment to post before locking. Set to `false` to disable -lockComment: false - -# Assign `resolved` as the reason for locking. Set to `false` to disable -setLockReason: true - -# Limit to only `issues` or `pulls` -# only: issues - -# Optionally, specify configuration settings just for `issues` or `pulls` -# issues: -# exemptLabels: -# - help-wanted -# lockLabel: outdated - -# pulls: -# daysUntilLock: 30 - -# Repository to extend settings from -# _extends: repo From 3be65ff806e36636d0499bd23e1d4f7ab306b1a7 Mon Sep 17 00:00:00 2001 From: James Cole Date: Sun, 2 May 2021 15:03:09 +0200 Subject: [PATCH 3/5] Add manual trigger. --- .github/workflows/lock.yml | 1 + 1 file changed, 1 insertion(+) diff --git a/.github/workflows/lock.yml b/.github/workflows/lock.yml index de5c5db77d..68a1c07617 100644 --- a/.github/workflows/lock.yml +++ b/.github/workflows/lock.yml @@ -2,6 +2,7 @@ name: Lock Threads uses: dessant/lock-threads@v2.0.1 on: + workflow_dispatch: schedule: - cron: '0 * * * *' From b3074b2f6abb1c5124be44271a063e69c84ca42e Mon Sep 17 00:00:00 2001 From: James Cole Date: Sun, 2 May 2021 15:03:56 +0200 Subject: [PATCH 4/5] Fix run. --- .github/workflows/lock.yml | 1 - 1 file changed, 1 deletion(-) diff --git a/.github/workflows/lock.yml b/.github/workflows/lock.yml index 68a1c07617..3cbb85a4d1 100644 --- a/.github/workflows/lock.yml +++ b/.github/workflows/lock.yml @@ -1,5 +1,4 @@ name: Lock Threads -uses: dessant/lock-threads@v2.0.1 on: workflow_dispatch: From 1d9431795be87e9dd8bc31d3364364442c8db642 Mon Sep 17 00:00:00 2001 From: James Cole Date: Sun, 2 May 2021 15:12:53 +0200 Subject: [PATCH 5/5] Add feedback. --- .github/workflows/lock.yml | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/.github/workflows/lock.yml b/.github/workflows/lock.yml index 3cbb85a4d1..0f934b5d39 100644 --- a/.github/workflows/lock.yml +++ b/.github/workflows/lock.yml @@ -13,3 +13,7 @@ jobs: with: github-token: ${{ github.token }} issue-lock-inactive-days: '90' + issue-lock-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. \ No newline at end of file