From fc517c8c8a5a0552be82eac9bb0f7deaa71ac9a8 Mon Sep 17 00:00:00 2001 From: Peter Collins Date: Thu, 19 Dec 2024 11:21:36 -0500 Subject: [PATCH] Add 'remove needs info' condition to issue updater The needs info and needs repdoduction labels should be cleared when an issue is updated. --- .github/policies/resourceManagement.yml | 34 +++++++++++++++++++++++++ 1 file changed, 34 insertions(+) diff --git a/.github/policies/resourceManagement.yml b/.github/policies/resourceManagement.yml index 7feca04..7e26fb6 100644 --- a/.github/policies/resourceManagement.yml +++ b/.github/policies/resourceManagement.yml @@ -117,6 +117,40 @@ configuration: - addReply: reply: Hi @${issueAuthor}. We have added the "needs reproduction" label to this issue, which indicates that we cannot take further action. This issue will be closed automatically in 5 days if we do not hear back from you by then - please feel free to re-open it if you come back to this issue after that time. description: Add comment when 'needs reproduction' is applied to issue + - if: + - payloadType: Issue_Comment + - isAction: + action: Created + - isOpen + - hasLabel: + label: needs info + - not: + activitySenderHasPermission: + permission: Admin + - not: + activitySenderHasPermission: + permission: Write + then: + - removeLabel: + label: needs info + description: Remove needs info label + - if: + - payloadType: Issue_Comment + - isAction: + action: Created + - isOpen + - hasLabel: + label: needs reproduction + - not: + activitySenderHasPermission: + permission: Admin + - not: + activitySenderHasPermission: + permission: Write + then: + - removeLabel: + label: needs reproduction + description: Remove needs reproduction label - if: - payloadType: Issues - hasLabel: