From fd72db8b3db097b71d29a0d432691238dbf800f3 Mon Sep 17 00:00:00 2001 From: Congcong Cai Date: Fri, 13 Oct 2023 09:47:53 +0800 Subject: [PATCH 1/2] ci: close inactive pull request --- .github/workflows/stale.yml | 11 +++++++---- 1 file changed, 7 insertions(+), 4 deletions(-) diff --git a/.github/workflows/stale.yml b/.github/workflows/stale.yml index 057e4b69d0..bcddf34199 100644 --- a/.github/workflows/stale.yml +++ b/.github/workflows/stale.yml @@ -6,14 +6,17 @@ jobs: stale: runs-on: ubuntu-latest steps: - - uses: actions/stale@v6 + - uses: actions/stale@v8 with: stale-issue-message: 'This issue has been automatically marked as stale because it has not had recent activity. It will be closed in one week if no further activity occurs. Thank you for your contributions!' stale-issue-label: 'stale' + stale-pr-message: 'This PR has been automatically marked as stale because it has not had recent activity. It will be closed in one week if no further activity occurs. Thank you for your contributions!' + close-pr-message: 'Automatically close due to lack of recent activity, but feel free to reopen with a rebase.' exempt-issue-labels: 'bug,enhancement,compatibility' + exempt-pr-labels: 'breaking change' + exempt-draft-pr: true exempt-all-milestones: true exempt-all-assignees: true - days-before-stale: 30 + days-before-issue-stale: 30 + days-before-pr-stale: 60 days-before-close: 7 - days-before-pr-stale: -1 - days-before-pr-close: -1 From a5cd69171c9167115a2671049f67c84f46da0164 Mon Sep 17 00:00:00 2001 From: Congcong Cai Date: Fri, 13 Oct 2023 10:19:24 +0800 Subject: [PATCH 2/2] Update .github/workflows/stale.yml Co-authored-by: CountBleck --- .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 bcddf34199..86853b6993 100644 --- a/.github/workflows/stale.yml +++ b/.github/workflows/stale.yml @@ -11,7 +11,7 @@ jobs: stale-issue-message: 'This issue has been automatically marked as stale because it has not had recent activity. It will be closed in one week if no further activity occurs. Thank you for your contributions!' stale-issue-label: 'stale' stale-pr-message: 'This PR has been automatically marked as stale because it has not had recent activity. It will be closed in one week if no further activity occurs. Thank you for your contributions!' - close-pr-message: 'Automatically close due to lack of recent activity, but feel free to reopen with a rebase.' + close-pr-message: 'This PR has been automatically closed due to lack of recent activity, but feel free to reopen it as long as you merge in the main branch afterwards.' exempt-issue-labels: 'bug,enhancement,compatibility' exempt-pr-labels: 'breaking change' exempt-draft-pr: true