From 79188b06f49d6f72ecf25def499c394a98468c57 Mon Sep 17 00:00:00 2001 From: Hundrec Date: Sun, 3 Nov 2024 12:54:51 -0800 Subject: [PATCH] Make label actions more convenient (#3771) --- .github/label-actions.yml | 84 +++++++++++++++++++++++++++++++++------ 1 file changed, 72 insertions(+), 12 deletions(-) diff --git a/.github/label-actions.yml b/.github/label-actions.yml index 1234d1526..dbc0d55a8 100644 --- a/.github/label-actions.yml +++ b/.github/label-actions.yml @@ -8,37 +8,97 @@ This issue is a duplicate. Please direct all discussion to the original issue. # Close the issue close: true - # Remove other status labels - unlabel: - - 'status: pending triage' # Set a close reason close-reason: 'not planned' + # Remove other status labels + unlabel: + - 'status: accepted' + - 'status: bug reproduced' + - 'status: cannot reproduce' + - 'status: needs clarification' + - 'status: needs revision' + - 'status: pending pull request' + - 'status: pending triage' + - 'status: rejected' + - 'status: resolved' + - 'status: reviewing internally' + - 'status: stale' prs: # Post a comment comment: > This pull request is a duplicate. Please direct all discussion to the original pull request. - # Remove other status labels - unlabel: - - 'status: pending triage' # Close the pull request close: true # Set a close reason close-reason: 'not planned' + # Remove other status labels + unlabel: + - 'status: accepted' + - 'status: bug reproduced' + - 'status: cannot reproduce' + - 'status: needs clarification' + - 'status: needs revision' + - 'status: pending pull request' + - 'status: pending triage' + - 'status: rejected' + - 'status: resolved' + - 'status: reviewing internally' + - 'status: stale' 'status: rejected': issues: # Close the issue close: true - # Remove other status labels - unlabel: - - 'status: pending triage' # Set a close reason close-reason: 'not planned' + # Remove other status labels + unlabel: + - 'status: accepted' + - 'status: bug reproduced' + - 'status: cannot reproduce' + - 'status: duplicate' + - 'status: needs clarification' + - 'status: needs revision' + - 'status: pending pull request' + - 'status: pending triage' + - 'status: resolved' + - 'status: reviewing internally' + - 'status: stale' prs: # Close the pull request close: true - # Remove other status labels - unlabel: - - 'status: pending triage' # Set a close reason close-reason: 'not planned' + # Remove other status labels + unlabel: + - 'status: accepted' + - 'status: bug reproduced' + - 'status: cannot reproduce' + - 'status: duplicate' + - 'status: needs clarification' + - 'status: needs revision' + - 'status: pending pull request' + - 'status: pending triage' + - 'status: resolved' + - 'status: reviewing internally' + - 'status: stale' + +'status: resolved': + issues: + # Close the issue + close: true + # Set a close reason + close-reason: 'completed' + # Remove other status labels + unlabel: + - 'status: accepted' + - 'status: bug reproduced' + - 'status: cannot reproduce' + - 'status: duplicate' + - 'status: needs clarification' + - 'status: needs revision' + - 'status: pending pull request' + - 'status: pending triage' + - 'status: rejected' + - 'status: reviewing internally' + - 'status: stale'