From 9451ae553aa5682c69c1675c0b1c06ed08805f15 Mon Sep 17 00:00:00 2001 From: Ben Straub Date: Mon, 3 Jul 2023 11:55:50 -0400 Subject: [PATCH 1/6] Create stale_bot.yml --- .github/workflows/stale_bot.yml | 14 ++++++++++++++ 1 file changed, 14 insertions(+) create mode 100644 .github/workflows/stale_bot.yml diff --git a/.github/workflows/stale_bot.yml b/.github/workflows/stale_bot.yml new file mode 100644 index 0000000000..a5e50a795b --- /dev/null +++ b/.github/workflows/stale_bot.yml @@ -0,0 +1,14 @@ +name: 'Close stale issues and PRs' +on: + schedule: + - cron: '30 1 * * *' + +jobs: + stale: + runs-on: ubuntu-latest + steps: + - uses: actions/stale@v8 + with: + stale-issue-message: 'This issue is stale because it has been open 30 days with no activity. Remove stale label or comment or this will be closed in 5 days.' + days-before-stale: 30 + days-before-close: 5 From 65bf81bf3a82c9c58d57115da4f6cf228107f56a Mon Sep 17 00:00:00 2001 From: Ben Straub Date: Mon, 3 Jul 2023 13:46:39 -0400 Subject: [PATCH 2/6] Update and rename stale_bot.yml to stale-bot.yml --- .github/workflows/stale-bot.yml | 22 ++++++++++++++++++++++ .github/workflows/stale_bot.yml | 14 -------------- 2 files changed, 22 insertions(+), 14 deletions(-) create mode 100644 .github/workflows/stale-bot.yml delete mode 100644 .github/workflows/stale_bot.yml diff --git a/.github/workflows/stale-bot.yml b/.github/workflows/stale-bot.yml new file mode 100644 index 0000000000..d30a8dd404 --- /dev/null +++ b/.github/workflows/stale-bot.yml @@ -0,0 +1,22 @@ +name: Close inactive issues +on: + schedule: + - cron: "30 1 * * *" + +jobs: + close-issues: + runs-on: ubuntu-latest + permissions: + issues: write + pull-requests: write + steps: + - uses: actions/stale@v5 + with: + days-before-issue-stale: 90 + days-before-issue-close: 14 + stale-issue-label: "stale" + stale-issue-message: "This issue is stale because it has been open for 90 days with no activity." + close-issue-message: "This issue was closed because it has been inactive for 14 days since being marked as stale." + days-before-pr-stale: 15 + days-before-pr-close: -1 + repo-token: ${{ secrets.GITHUB_TOKEN }} diff --git a/.github/workflows/stale_bot.yml b/.github/workflows/stale_bot.yml deleted file mode 100644 index a5e50a795b..0000000000 --- a/.github/workflows/stale_bot.yml +++ /dev/null @@ -1,14 +0,0 @@ -name: 'Close stale issues and PRs' -on: - schedule: - - cron: '30 1 * * *' - -jobs: - stale: - runs-on: ubuntu-latest - steps: - - uses: actions/stale@v8 - with: - stale-issue-message: 'This issue is stale because it has been open 30 days with no activity. Remove stale label or comment or this will be closed in 5 days.' - days-before-stale: 30 - days-before-close: 5 From da2c1878dfbbade7900e36ea83c67981ea7bb706 Mon Sep 17 00:00:00 2001 From: Ben Straub Date: Mon, 3 Jul 2023 13:47:56 -0400 Subject: [PATCH 3/6] Update stale-bot.yml --- .github/workflows/stale-bot.yml | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/.github/workflows/stale-bot.yml b/.github/workflows/stale-bot.yml index d30a8dd404..e0e835e9f4 100644 --- a/.github/workflows/stale-bot.yml +++ b/.github/workflows/stale-bot.yml @@ -1,4 +1,6 @@ -name: Close inactive issues +# https://github.com/actions/stale + +name: Close Inactive Issues and Pull Requests on: schedule: - cron: "30 1 * * *" From 6d23728f6a30547d10b48ad4957fdf810bdebdb3 Mon Sep 17 00:00:00 2001 From: Ben Straub Date: Mon, 3 Jul 2023 13:54:33 -0400 Subject: [PATCH 4/6] Update stale-bot.yml --- .github/workflows/stale-bot.yml | 1 + 1 file changed, 1 insertion(+) diff --git a/.github/workflows/stale-bot.yml b/.github/workflows/stale-bot.yml index e0e835e9f4..53576ed0bf 100644 --- a/.github/workflows/stale-bot.yml +++ b/.github/workflows/stale-bot.yml @@ -17,6 +17,7 @@ jobs: days-before-issue-stale: 90 days-before-issue-close: 14 stale-issue-label: "stale" + exempt-issue-labels: ("release Q3-2023", "release Q4-2023", "release Q1-2024") stale-issue-message: "This issue is stale because it has been open for 90 days with no activity." close-issue-message: "This issue was closed because it has been inactive for 14 days since being marked as stale." days-before-pr-stale: 15 From b5688e7506a0cfd0955c5c93b03f5f95b4688f4f Mon Sep 17 00:00:00 2001 From: Ben Straub Date: Wed, 5 Jul 2023 13:53:16 -0400 Subject: [PATCH 5/6] Update stale-bot.yml --- .github/workflows/stale-bot.yml | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/.github/workflows/stale-bot.yml b/.github/workflows/stale-bot.yml index 53576ed0bf..c2be008150 100644 --- a/.github/workflows/stale-bot.yml +++ b/.github/workflows/stale-bot.yml @@ -15,11 +15,11 @@ jobs: - uses: actions/stale@v5 with: days-before-issue-stale: 90 - days-before-issue-close: 14 + days-before-issue-close: -1 stale-issue-label: "stale" - exempt-issue-labels: ("release Q3-2023", "release Q4-2023", "release Q1-2024") stale-issue-message: "This issue is stale because it has been open for 90 days with no activity." - close-issue-message: "This issue was closed because it has been inactive for 14 days since being marked as stale." days-before-pr-stale: 15 days-before-pr-close: -1 + stale-pr-label: "stale" + stale-pr-message: "This Pull Request is stale because it has not been worked on in 15 days." repo-token: ${{ secrets.GITHUB_TOKEN }} From 1727864555a4729b31e6e89eadd8d61e0b66b965 Mon Sep 17 00:00:00 2001 From: Ben Straub Date: Wed, 5 Jul 2023 14:37:21 -0400 Subject: [PATCH 6/6] Update stale-bot.yml --- .github/workflows/stale-bot.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/stale-bot.yml b/.github/workflows/stale-bot.yml index c2be008150..d25d15ba91 100644 --- a/.github/workflows/stale-bot.yml +++ b/.github/workflows/stale-bot.yml @@ -12,7 +12,7 @@ jobs: issues: write pull-requests: write steps: - - uses: actions/stale@v5 + - uses: actions/stale@v8 with: days-before-issue-stale: 90 days-before-issue-close: -1