From 9a46ee4ef3430dbb245883889b6187a49e1acbeb Mon Sep 17 00:00:00 2001 From: Tatiana Al-Chueyr Date: Wed, 30 Oct 2024 09:34:29 +0000 Subject: [PATCH 1/6] Add stalebot to label/close stale PRs and issues --- .github/workflows/stale.yml | 25 +++++++++++++++++++++++++ 1 file changed, 25 insertions(+) create mode 100644 .github/workflows/stale.yml diff --git a/.github/workflows/stale.yml b/.github/workflows/stale.yml new file mode 100644 index 0000000000..bcd6443cb6 --- /dev/null +++ b/.github/workflows/stale.yml @@ -0,0 +1,25 @@ +name: Handle stale issues and PRs +on: + schedule: + - cron: "0 11 * * *" + push: + branches: [stale-bot] +jobs: + handle-stale: + runs-on: ubuntu-latest + permissions: + issues: write + pull-requests: write + steps: + - uses: actions/stale@v9 + with: + days-before-issue-stale: 90 + days-before-issue-close: -1 + stale-issue-label: "stale" + stale-issue-message: "This issue is stale because it has been open for 90 days with no activity." + days-before-pr-stale: 60 + days-before-pr-close: 120 + stale-pr-label: "This PR is stale because it has been open for 60 days with no activity." + stale-pr-message: "This PR" + close-pr-message: "This PR was closed because it has been inactive for 60 days since being marked as stale." + repo-token: ${{ secrets.GITHUB_TOKEN }} From a63a05fac502441deeea54e8470903eefb5be731 Mon Sep 17 00:00:00 2001 From: Tatiana Al-Chueyr Date: Wed, 30 Oct 2024 09:39:45 +0000 Subject: [PATCH 2/6] Try to fix isses --- .github/workflows/stale.yml | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/.github/workflows/stale.yml b/.github/workflows/stale.yml index bcd6443cb6..439e0ba0a7 100644 --- a/.github/workflows/stale.yml +++ b/.github/workflows/stale.yml @@ -19,7 +19,8 @@ jobs: stale-issue-message: "This issue is stale because it has been open for 90 days with no activity." days-before-pr-stale: 60 days-before-pr-close: 120 - stale-pr-label: "This PR is stale because it has been open for 60 days with no activity." - stale-pr-message: "This PR" + stale-pr-label: "stale" + stale-pr-message: "This PR is stale because it has been open for 60 days with no activity." + close-pr-label: "stale" close-pr-message: "This PR was closed because it has been inactive for 60 days since being marked as stale." repo-token: ${{ secrets.GITHUB_TOKEN }} From ab7d1663010b3401b04a0ba7828cbb7447d9202a Mon Sep 17 00:00:00 2001 From: Tatiana Al-Chueyr Date: Wed, 30 Oct 2024 09:47:35 +0000 Subject: [PATCH 3/6] Try to fix isses --- .github/workflows/stale.yml | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/.github/workflows/stale.yml b/.github/workflows/stale.yml index 439e0ba0a7..a77fd74d0c 100644 --- a/.github/workflows/stale.yml +++ b/.github/workflows/stale.yml @@ -18,9 +18,8 @@ jobs: stale-issue-label: "stale" stale-issue-message: "This issue is stale because it has been open for 90 days with no activity." days-before-pr-stale: 60 - days-before-pr-close: 120 + days-before-pr-close: 60 stale-pr-label: "stale" stale-pr-message: "This PR is stale because it has been open for 60 days with no activity." - close-pr-label: "stale" close-pr-message: "This PR was closed because it has been inactive for 60 days since being marked as stale." repo-token: ${{ secrets.GITHUB_TOKEN }} From 62b09bc7b23ffaee31d8477276875b597f6a871f Mon Sep 17 00:00:00 2001 From: Tatiana Al-Chueyr Date: Wed, 30 Oct 2024 09:53:04 +0000 Subject: [PATCH 4/6] Update times --- .github/workflows/stale.yml | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/.github/workflows/stale.yml b/.github/workflows/stale.yml index a77fd74d0c..e38d317d43 100644 --- a/.github/workflows/stale.yml +++ b/.github/workflows/stale.yml @@ -13,13 +13,13 @@ jobs: steps: - uses: actions/stale@v9 with: - days-before-issue-stale: 90 + days-before-issue-stale: 30 days-before-issue-close: -1 stale-issue-label: "stale" - stale-issue-message: "This issue is stale because it has been open for 90 days with no activity." - days-before-pr-stale: 60 - days-before-pr-close: 60 + stale-issue-message: "This issue is stale because it has been open for 30 days with no activity." + days-before-pr-stale: 30 + days-before-pr-close: 10 stale-pr-label: "stale" - stale-pr-message: "This PR is stale because it has been open for 60 days with no activity." - close-pr-message: "This PR was closed because it has been inactive for 60 days since being marked as stale." + stale-pr-message: "This PR is stale because it has been open for 30 days with no activity." + close-pr-message: "This PR was closed because it has been inactive for 10 days since being marked as stale." repo-token: ${{ secrets.GITHUB_TOKEN }} From 03eb12c75f666f7e625b08d81ad9b0aee708a9b2 Mon Sep 17 00:00:00 2001 From: Tatiana Al-Chueyr Date: Wed, 30 Oct 2024 13:51:31 +0000 Subject: [PATCH 5/6] Address PR feedback --- .github/workflows/stale.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/stale.yml b/.github/workflows/stale.yml index e38d317d43..a1b61150c4 100644 --- a/.github/workflows/stale.yml +++ b/.github/workflows/stale.yml @@ -14,7 +14,7 @@ jobs: - uses: actions/stale@v9 with: days-before-issue-stale: 30 - days-before-issue-close: -1 + days-before-issue-close: -1 # Never closes issues, more information in https://github.com/actions/stale/ stale-issue-label: "stale" stale-issue-message: "This issue is stale because it has been open for 30 days with no activity." days-before-pr-stale: 30 From ecb6664256dff14d6ba27246c56be6d41fb9e557 Mon Sep 17 00:00:00 2001 From: Tatiana Al-Chueyr Date: Wed, 30 Oct 2024 13:58:27 +0000 Subject: [PATCH 6/6] Update .github/workflows/stale.yml --- .github/workflows/stale.yml | 2 -- 1 file changed, 2 deletions(-) diff --git a/.github/workflows/stale.yml b/.github/workflows/stale.yml index a1b61150c4..57f10982ae 100644 --- a/.github/workflows/stale.yml +++ b/.github/workflows/stale.yml @@ -2,8 +2,6 @@ name: Handle stale issues and PRs on: schedule: - cron: "0 11 * * *" - push: - branches: [stale-bot] jobs: handle-stale: runs-on: ubuntu-latest