From b4f0ef7ebd9d8dad0fceca51fb22dc6f44995bbb Mon Sep 17 00:00:00 2001 From: Joao Grassi Date: Fri, 2 Feb 2024 13:43:43 +0100 Subject: [PATCH 1/2] Several improvements on stale action --- .github/workflows/stale-pr.yml | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) diff --git a/.github/workflows/stale-pr.yml b/.github/workflows/stale-pr.yml index e463791fa9..cf5de88c40 100644 --- a/.github/workflows/stale-pr.yml +++ b/.github/workflows/stale-pr.yml @@ -1,4 +1,4 @@ -name: "Close stale spull requests" +name: "Close stale pull requests" on: schedule: - cron: "12 3 * * *" # arbitrary time not to DDOS GitHub @@ -7,11 +7,12 @@ jobs: stale: runs-on: ubuntu-latest steps: - - uses: actions/stale@v3 + - uses: actions/stale@v9 with: repo-token: ${{ secrets.GITHUB_TOKEN }} - stale-pr-message: 'This PR was marked stale due to lack of activity. It will be closed in 7 days.' + stale-pr-message: 'This PR was marked stale due to lack of activity. It will be closed in 7 days. Consider applying the label `work in progress` to avoid this being marked as stale again.' close-pr-message: 'Closed as inactive. Feel free to reopen if this PR is still being worked on.' - exempt-pr-labels: 'release:after-ga' + exempt-pr-labels: 'bug,work in progress,experts needed' + exempt-draft-pr: true days-before-stale: 15 days-before-close: 7 From 3c54b1be3dee3ecd56be1c5026fc370d4bf6dfde Mon Sep 17 00:00:00 2001 From: Joao Grassi Date: Mon, 5 Feb 2024 16:59:41 +0100 Subject: [PATCH 2/2] PR suggestions --- .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 cf5de88c40..3b6ebf4168 100644 --- a/.github/workflows/stale-pr.yml +++ b/.github/workflows/stale-pr.yml @@ -10,7 +10,7 @@ jobs: - uses: actions/stale@v9 with: repo-token: ${{ secrets.GITHUB_TOKEN }} - stale-pr-message: 'This PR was marked stale due to lack of activity. It will be closed in 7 days. Consider applying the label `work in progress` to avoid this being marked as stale again.' + stale-pr-message: 'This PR was marked stale due to lack of activity. It will be closed in 7 days.' close-pr-message: 'Closed as inactive. Feel free to reopen if this PR is still being worked on.' exempt-pr-labels: 'bug,work in progress,experts needed' exempt-draft-pr: true