From ae6cb8238fb1aab3aacf18584aa173b964de7157 Mon Sep 17 00:00:00 2001 From: Edwin Kofler Date: Thu, 28 Nov 2024 20:43:17 -0800 Subject: [PATCH 1/5] Add stale bot for old PRs --- .github/workflows/stale.yaml | 18 ++++++++++++++++++ 1 file changed, 18 insertions(+) create mode 100644 .github/workflows/stale.yaml diff --git a/.github/workflows/stale.yaml b/.github/workflows/stale.yaml new file mode 100644 index 00000000..d7965b6a --- /dev/null +++ b/.github/workflows/stale.yaml @@ -0,0 +1,18 @@ +name: "Maintenance: Close Stale PRs" +on: + schedule: + - cron: "30 1 * * *" + +permissions: + pull-requests: "write" + +jobs: + stale: + runs-on: "ubuntu-latest" + if: github.repository_owner == 'SchemaStore' + steps: + - uses: "actions/stale@v9" + with: + close-pr-message: "This PR was closed because it has been stalled for 365 days with no activity." + days-before-pr-stale: 365 + days-before-pr-close: 0 From 2dcae2fb3f080308e835feae7c92a6562679111d Mon Sep 17 00:00:00 2001 From: Edwin Kofler Date: Thu, 28 Nov 2024 20:48:23 -0800 Subject: [PATCH 2/5] Update message --- .github/workflows/stale.yaml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/stale.yaml b/.github/workflows/stale.yaml index d7965b6a..5c36192b 100644 --- a/.github/workflows/stale.yaml +++ b/.github/workflows/stale.yaml @@ -13,6 +13,6 @@ jobs: steps: - uses: "actions/stale@v9" with: - close-pr-message: "This PR was closed because it has been stalled for 365 days with no activity." + close-pr-message: "This PR was closed because it has been stalled for 365 days with no activity. Feel free make a new PR if you wish to continue¶" days-before-pr-stale: 365 days-before-pr-close: 0 From 96101991591713208cb4861811f2e7ad8b8037dd Mon Sep 17 00:00:00 2001 From: Edwin Kofler Date: Fri, 7 Mar 2025 00:48:55 -0800 Subject: [PATCH 3/5] Update .github/workflows/stale.yaml MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Co-authored-by: 罗泽轩 --- .github/workflows/stale.yaml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/stale.yaml b/.github/workflows/stale.yaml index 5c36192b..3cf96929 100644 --- a/.github/workflows/stale.yaml +++ b/.github/workflows/stale.yaml @@ -13,6 +13,6 @@ jobs: steps: - uses: "actions/stale@v9" with: - close-pr-message: "This PR was closed because it has been stalled for 365 days with no activity. Feel free make a new PR if you wish to continue¶" + close-pr-message: "This PR was closed because it has been stalled for 365 days with no activity. Feel free to make a new PR if you wish to continue" days-before-pr-stale: 365 days-before-pr-close: 0 From 0a8d94396e017deedb718f814a476f126d493114 Mon Sep 17 00:00:00 2001 From: Edwin Kofler Date: Fri, 7 Mar 2025 00:51:01 -0800 Subject: [PATCH 4/5] Fix stale workflow --- .github/workflows/stale.yaml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/.github/workflows/stale.yaml b/.github/workflows/stale.yaml index 3cf96929..2e91ab55 100644 --- a/.github/workflows/stale.yaml +++ b/.github/workflows/stale.yaml @@ -9,10 +9,10 @@ permissions: jobs: stale: runs-on: "ubuntu-latest" - if: github.repository_owner == 'SchemaStore' + if: github.repository_owner == 'tj' steps: - uses: "actions/stale@v9" with: close-pr-message: "This PR was closed because it has been stalled for 365 days with no activity. Feel free to make a new PR if you wish to continue" days-before-pr-stale: 365 - days-before-pr-close: 0 + days-before-pr-close: 15 From 4fba795b0f6cb34d12b28f4ed2726a6475627dcc Mon Sep 17 00:00:00 2001 From: Edwin Kofler Date: Sun, 9 Mar 2025 22:55:39 -0700 Subject: [PATCH 5/5] Update .github/workflows/stale.yaml MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Co-authored-by: 罗泽轩 --- .github/workflows/stale.yaml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/stale.yaml b/.github/workflows/stale.yaml index 2e91ab55..3c6a1d27 100644 --- a/.github/workflows/stale.yaml +++ b/.github/workflows/stale.yaml @@ -14,5 +14,5 @@ jobs: - uses: "actions/stale@v9" with: close-pr-message: "This PR was closed because it has been stalled for 365 days with no activity. Feel free to make a new PR if you wish to continue" - days-before-pr-stale: 365 + days-before-pr-stale: 350 days-before-pr-close: 15