From 376d101453254ba8ebe4c45fb382c96df704c803 Mon Sep 17 00:00:00 2001 From: Michael Tarnawa Date: Fri, 24 Nov 2023 14:32:25 +0100 Subject: [PATCH 1/4] Create inactivity.yml --- .github/workflows/inactivity.yml | 25 +++++++++++++++++++++++++ 1 file changed, 25 insertions(+) create mode 100644 .github/workflows/inactivity.yml diff --git a/.github/workflows/inactivity.yml b/.github/workflows/inactivity.yml new file mode 100644 index 0000000000..b2bc22d3dd --- /dev/null +++ b/.github/workflows/inactivity.yml @@ -0,0 +1,25 @@ +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: 60 + days-before-issue-close: 14 + stale-issue-label: "stale" + stale-issue-message: "This issue is stale because it has been open for 30 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: 60 + days-before-pr-close: 14 + stale-pr-label: "stale" + stale-pr-message: "This pull request is stale because it has been open for 30 days with no activity." + close-pr-message: "This pull request was closed because it has been inactive for 14 days since being marked as stale." + repo-token: ${{ secrets.GITHUB_TOKEN }} From 834fed8358538ed0d08c95dc6e72085c7ca9fbb8 Mon Sep 17 00:00:00 2001 From: Michael Tarnawa Date: Fri, 24 Nov 2023 14:48:23 +0100 Subject: [PATCH 2/4] Update inactivity.yml --- .github/workflows/inactivity.yml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/.github/workflows/inactivity.yml b/.github/workflows/inactivity.yml index b2bc22d3dd..30343139f3 100644 --- a/.github/workflows/inactivity.yml +++ b/.github/workflows/inactivity.yml @@ -13,12 +13,12 @@ jobs: - uses: actions/stale@v5 with: days-before-issue-stale: 60 - days-before-issue-close: 14 + days-before-issue-close: 60 stale-issue-label: "stale" stale-issue-message: "This issue is stale because it has been open for 30 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: 60 - days-before-pr-close: 14 + days-before-pr-close: 60 stale-pr-label: "stale" stale-pr-message: "This pull request is stale because it has been open for 30 days with no activity." close-pr-message: "This pull request was closed because it has been inactive for 14 days since being marked as stale." From 812981a3fdf42cd977dae16c4af5b5898b03e009 Mon Sep 17 00:00:00 2001 From: Michael Tarnawa Date: Mon, 27 Nov 2023 10:14:48 +0100 Subject: [PATCH 3/4] Apply suggestions from code review Co-authored-by: Claudia Comito <39374113+ClaudiaComito@users.noreply.github.com> --- .github/workflows/inactivity.yml | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/.github/workflows/inactivity.yml b/.github/workflows/inactivity.yml index 30343139f3..61869cfd43 100644 --- a/.github/workflows/inactivity.yml +++ b/.github/workflows/inactivity.yml @@ -15,11 +15,11 @@ jobs: days-before-issue-stale: 60 days-before-issue-close: 60 stale-issue-label: "stale" - stale-issue-message: "This issue is stale because it has been open for 30 days with no activity." - close-issue-message: "This issue was closed because it has been inactive for 14 days since being marked as stale." + stale-issue-message: "This issue is stale because it has been open for 60 days with no activity." + close-issue-message: "This issue was closed because it has been inactive for 60 days since being marked as stale." days-before-pr-stale: 60 days-before-pr-close: 60 stale-pr-label: "stale" - stale-pr-message: "This pull request is stale because it has been open for 30 days with no activity." - close-pr-message: "This pull request was closed because it has been inactive for 14 days since being marked as stale." + stale-pr-message: "This pull request is stale because it has been open for 60 days with no activity." + close-pr-message: "This pull request was closed because it has been inactive for 60 days since being marked as stale." repo-token: ${{ secrets.GITHUB_TOKEN }} From 267122e5681fbdf37de91bd82e14ee3a0c5a3f71 Mon Sep 17 00:00:00 2001 From: Michael Tarnawa Date: Mon, 27 Nov 2023 10:17:28 +0100 Subject: [PATCH 4/4] Update .github/workflows/inactivity.yml Co-authored-by: Claudia Comito <39374113+ClaudiaComito@users.noreply.github.com> --- .github/workflows/inactivity.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/inactivity.yml b/.github/workflows/inactivity.yml index 61869cfd43..5ca6e28768 100644 --- a/.github/workflows/inactivity.yml +++ b/.github/workflows/inactivity.yml @@ -1,7 +1,7 @@ name: Close inactive issues on: schedule: - - cron: "30 1 * * *" + - cron: "30 1 * * 1" jobs: close-issues: