From 1719c82fefee2d5dbb950a4f15ce47628a11e595 Mon Sep 17 00:00:00 2001 From: Daniel Bernal Date: Wed, 10 Apr 2024 18:30:17 +0200 Subject: [PATCH 1/6] Stale PRs --- .github/workflows/stale_pr.yml | 18 ++++++++++++++++++ 1 file changed, 18 insertions(+) create mode 100644 .github/workflows/stale_pr.yml diff --git a/.github/workflows/stale_pr.yml b/.github/workflows/stale_pr.yml new file mode 100644 index 0000000000..cb6845315e --- /dev/null +++ b/.github/workflows/stale_pr.yml @@ -0,0 +1,18 @@ +name: Close Stale Pull Requests + +on: + schedule: + - cron: '0 0 * * *' + +jobs: + close_stale_prs: + runs-on: ubuntu-latest + steps: + - name: Close stale pull requests + uses: actions/stale@v5 + with: + stale-pr-message: 'This PR has been inactive for more than 7 days and will be automatically closed in 7 days.' + days-before-stale: 7 + close-pr-message: 'This PR has been closed after 14 days of inactivity. Feel free to reopen it if you plan to continue working on it or have further discussions.' + days-before-close: 7 + stale-pr-label: stale \ No newline at end of file From d0329ce40d6dbcea38a101648f2fa0bdc2335238 Mon Sep 17 00:00:00 2001 From: Daniel Bernal Date: Thu, 11 Apr 2024 11:47:55 +0200 Subject: [PATCH 2/6] Message update --- .github/workflows/stale_pr.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/stale_pr.yml b/.github/workflows/stale_pr.yml index cb6845315e..e752dfd2c9 100644 --- a/.github/workflows/stale_pr.yml +++ b/.github/workflows/stale_pr.yml @@ -11,7 +11,7 @@ jobs: - name: Close stale pull requests uses: actions/stale@v5 with: - stale-pr-message: 'This PR has been inactive for more than 7 days and will be automatically closed in 7 days.' + stale-pr-message: 'This PR has been inactive for more than 7 days and will be automatically closed 7 days from now.' days-before-stale: 7 close-pr-message: 'This PR has been closed after 14 days of inactivity. Feel free to reopen it if you plan to continue working on it or have further discussions.' days-before-close: 7 From d73fd35771db265a01ad256f7ed3118611097425 Mon Sep 17 00:00:00 2001 From: Daniel Bernal Date: Thu, 11 Apr 2024 11:55:23 +0200 Subject: [PATCH 3/6] Skip draft PRs --- .github/workflows/stale_pr.yml | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/.github/workflows/stale_pr.yml b/.github/workflows/stale_pr.yml index e752dfd2c9..17eb5c7f18 100644 --- a/.github/workflows/stale_pr.yml +++ b/.github/workflows/stale_pr.yml @@ -15,4 +15,5 @@ jobs: days-before-stale: 7 close-pr-message: 'This PR has been closed after 14 days of inactivity. Feel free to reopen it if you plan to continue working on it or have further discussions.' days-before-close: 7 - stale-pr-label: stale \ No newline at end of file + stale-pr-label: stale + exempt-draft-pr: true \ No newline at end of file From 0987547b9299b5e306b156a76eb97bbb9e6ab832 Mon Sep 17 00:00:00 2001 From: Daniel Bernal Date: Thu, 11 Apr 2024 11:58:16 +0200 Subject: [PATCH 4/6] Remove stale on updates --- .github/workflows/stale_pr.yml | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/.github/workflows/stale_pr.yml b/.github/workflows/stale_pr.yml index 17eb5c7f18..ef47822951 100644 --- a/.github/workflows/stale_pr.yml +++ b/.github/workflows/stale_pr.yml @@ -16,4 +16,5 @@ jobs: close-pr-message: 'This PR has been closed after 14 days of inactivity. Feel free to reopen it if you plan to continue working on it or have further discussions.' days-before-close: 7 stale-pr-label: stale - exempt-draft-pr: true \ No newline at end of file + exempt-draft-pr: true + remove-pr-stale-when-updated: true \ No newline at end of file From 30693e8643ec91c588cf931c84d4082b51dd2a19 Mon Sep 17 00:00:00 2001 From: Daniel Bernal Date: Thu, 11 Apr 2024 12:00:44 +0200 Subject: [PATCH 5/6] Update stale version --- .github/workflows/stale_pr.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/stale_pr.yml b/.github/workflows/stale_pr.yml index ef47822951..bb5b7fb5c8 100644 --- a/.github/workflows/stale_pr.yml +++ b/.github/workflows/stale_pr.yml @@ -9,7 +9,7 @@ jobs: runs-on: ubuntu-latest steps: - name: Close stale pull requests - uses: actions/stale@v5 + uses: actions/stale@v9 with: stale-pr-message: 'This PR has been inactive for more than 7 days and will be automatically closed 7 days from now.' days-before-stale: 7 From 4f656369d17a1c2ac6c131bcecd14596d780371f Mon Sep 17 00:00:00 2001 From: Daniel Bernal Date: Thu, 11 Apr 2024 12:02:29 +0200 Subject: [PATCH 6/6] Remove unwanted label (defaults to true) --- .github/workflows/stale_pr.yml | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/.github/workflows/stale_pr.yml b/.github/workflows/stale_pr.yml index bb5b7fb5c8..a5590c9c63 100644 --- a/.github/workflows/stale_pr.yml +++ b/.github/workflows/stale_pr.yml @@ -16,5 +16,4 @@ jobs: close-pr-message: 'This PR has been closed after 14 days of inactivity. Feel free to reopen it if you plan to continue working on it or have further discussions.' days-before-close: 7 stale-pr-label: stale - exempt-draft-pr: true - remove-pr-stale-when-updated: true \ No newline at end of file + exempt-draft-pr: true \ No newline at end of file