From d93514d327ee8c356cdbfd030c45cf07dce4cfa2 Mon Sep 17 00:00:00 2001 From: syeopite Date: Sat, 5 Jun 2021 07:16:07 -0700 Subject: [PATCH 1/4] Add workflow to lock stale closed issues --- .github/workflows/lock.yml | 20 ++++++++++++++++++++ 1 file changed, 20 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 00000000..83c9040b --- /dev/null +++ b/.github/workflows/lock.yml @@ -0,0 +1,20 @@ +name: 'Lock Threads' + +on: + schedule: + - cron: "0 */12 * * *" + +jobs: + lock: + runs-on: ubuntu-latest + steps: + - uses: dessant/lock-threads@v2 + with: + github-token: ${{ github.token }} + issue-lock-inactive-days: '60' + pr-lock-inactive-days: '60' + issue-lock-reason: 'resolved' + pr-lock-reason: 'resolved' + + 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.' + pr-lock-comment: 'This pull request has been automatically locked since there has not been any recent activity after it was closed. Please open a new pull request for related changes.' \ No newline at end of file From b491d69eecc0307718e5053da862944e952c68df Mon Sep 17 00:00:00 2001 From: syeopite Date: Sat, 5 Jun 2021 07:17:41 -0700 Subject: [PATCH 2/4] Formatting --- .github/workflows/lock.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/lock.yml b/.github/workflows/lock.yml index 83c9040b..88780313 100644 --- a/.github/workflows/lock.yml +++ b/.github/workflows/lock.yml @@ -17,4 +17,4 @@ jobs: pr-lock-reason: 'resolved' 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.' - pr-lock-comment: 'This pull request has been automatically locked since there has not been any recent activity after it was closed. Please open a new pull request for related changes.' \ No newline at end of file + pr-lock-comment: 'This pull request has been automatically locked since there has not been any recent activity after it was closed. Please open a new pull request for related changes.' From abbc2bad3538511329a759123f4913b48f4eebc2 Mon Sep 17 00:00:00 2001 From: syeopite Date: Sat, 5 Jun 2021 13:51:11 -0700 Subject: [PATCH 3/4] Slash inactive days for issue locker by half --- .github/workflows/lock.yml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/.github/workflows/lock.yml b/.github/workflows/lock.yml index 88780313..89b026d1 100644 --- a/.github/workflows/lock.yml +++ b/.github/workflows/lock.yml @@ -11,8 +11,8 @@ jobs: - uses: dessant/lock-threads@v2 with: github-token: ${{ github.token }} - issue-lock-inactive-days: '60' - pr-lock-inactive-days: '60' + issue-lock-inactive-days: '30' + pr-lock-inactive-days: '30' issue-lock-reason: 'resolved' pr-lock-reason: 'resolved' From dd13392e369f06a49dd4638bc3ddc89db3e99998 Mon Sep 17 00:00:00 2001 From: syeopite Date: Tue, 8 Jun 2021 12:02:48 -0700 Subject: [PATCH 4/4] Change wording of issue/pull locker message --- .github/workflows/lock.yml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/.github/workflows/lock.yml b/.github/workflows/lock.yml index 89b026d1..3d2a0de7 100644 --- a/.github/workflows/lock.yml +++ b/.github/workflows/lock.yml @@ -16,5 +16,5 @@ jobs: issue-lock-reason: 'resolved' pr-lock-reason: 'resolved' - 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.' - pr-lock-comment: 'This pull request has been automatically locked since there has not been any recent activity after it was closed. Please open a new pull request for related changes.' + issue-lock-comment: 'This issue has been automatically locked since there has not been any activity in it in the last 30 days. If this is still applicable to the current version of Invidious feel free to open a new issue.' + pr-lock-comment: 'This pull request has been automatically locked since there has not been any activity in it in the last 30 days. If you want to tell us about needed or wanted changes or if problems related to this code are discovered, feel free to open an issue or a new pull request.'