From ea7ffa8929a22689f7697e497379b28038584450 Mon Sep 17 00:00:00 2001 From: Suguru Hirahara Date: Mon, 25 Nov 2024 13:13:43 +0900 Subject: [PATCH 1/2] Update .github/workflows/close-stale-issues.yml: edit stale messages and fix any-of-labels This is a follow-up to 5483925ee4ed40b6d4129e22b714dcf588a97520. Since any-of-issue/pr-labels overrides any-of-labels, the values specified by the latter need to be specified by the former. Signed-off-by: Suguru Hirahara --- .github/workflows/close-stale-issues.yml | 10 ++++------ 1 file changed, 4 insertions(+), 6 deletions(-) diff --git a/.github/workflows/close-stale-issues.yml b/.github/workflows/close-stale-issues.yml index 45f31da7b..5612e7cc7 100644 --- a/.github/workflows/close-stale-issues.yml +++ b/.github/workflows/close-stale-issues.yml @@ -22,31 +22,29 @@ jobs: ###################################################################### exempt-assignees: 'spantaleev,aine-etke' operations-per-run: 100 - # An allow-list of label(s) to only process the issues/PRs which contain one of these label(s). - any-of-labels: 'needs-info' # Use this to do a dry run from a pull request # debug-only: true ###################################################################### # Issues ###################################################################### - stale-issue-message: 'This issue is stale because it has been open 60 days with no activity. Remove stale label or comment or this will be closed in 7 days.' + stale-issue-message: 'This issue is stale because it has been open 60 days with no activity. Remove stale label or comment or this will be closed in 7 days. To exempt the issue from being marked as stale again due to inactivity, add "confirmed" label.' close-issue-message: 'This issue was closed because it has been stalled for 7 days with no activity. If this issue is still reproduced, feel free to provide the issue with up-to-date information.' stale-issue-label: 'stale' # Add this label to exempt the issue from being marked as stale due to inactivity exempt-issue-labels: 'confirmed' # An allow-list of label(s) to only process the issues which contain one of these label(s). - any-of-issue-labels: 'question' + any-of-issue-labels: 'needs-info,question' ###################################################################### # PRs ###################################################################### days-before-pr-stale: '365' days-before-pr-close: '30' - stale-pr-message: 'This PR is stale because it has been open a year with no activity. Remove stale label or this will be closed in 30 days.' + stale-pr-message: 'This PR is stale because it has been open a year with no activity. Remove stale label or this will be closed in 30 days. To exempt the PR from being marked as stale again due to inactivity, add "confirmed" label.' close-pr-message: 'This PR was closed because it has been stalled for 30 days with no activity.' stale-pr-label: 'stale' # Add this label to exempt the PR from being marked as stale due to inactivity exempt-pr-labels: 'confirmed' # An allow-list of label(s) to only process the PRs which contain one of these label(s). - any-of-pr-labels: 'needs-rebase' + any-of-pr-labels: 'needs-info,needs-rebase' # Use this to ignore updates such as comments (only to keep the PR alive by bumping) ignore-pr-updates: true From 204878709a17632b02ca9309886ad3f1b8ef3825 Mon Sep 17 00:00:00 2001 From: Suguru Hirahara Date: Mon, 25 Nov 2024 14:01:56 +0900 Subject: [PATCH 2/2] Update .github/workflows/close-stale-issues.yml: correct the stale message for PRs Signed-off-by: Suguru Hirahara --- .github/workflows/close-stale-issues.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/close-stale-issues.yml b/.github/workflows/close-stale-issues.yml index 5612e7cc7..3a799821b 100644 --- a/.github/workflows/close-stale-issues.yml +++ b/.github/workflows/close-stale-issues.yml @@ -39,7 +39,7 @@ jobs: ###################################################################### days-before-pr-stale: '365' days-before-pr-close: '30' - stale-pr-message: 'This PR is stale because it has been open a year with no activity. Remove stale label or this will be closed in 30 days. To exempt the PR from being marked as stale again due to inactivity, add "confirmed" label.' + stale-pr-message: 'This PR is stale because it has not been provided with required information or its conflicts have not been fixed over a year. Remove stale label or this will be closed in 30 days. To exempt the PR from being marked as stale again due to inactivity, add "confirmed" label.' close-pr-message: 'This PR was closed because it has been stalled for 30 days with no activity.' stale-pr-label: 'stale' # Add this label to exempt the PR from being marked as stale due to inactivity