From dd116e019ff7e8b8530d73fdecbb6d9897213a23 Mon Sep 17 00:00:00 2001 From: Gerald Versluis Date: Tue, 23 Apr 2024 16:14:31 +0200 Subject: [PATCH 1/2] Add s/triaged label for issues opened by (core) team Alternate approach to #21775 as that clearly didn't work. Hoping this _will_ work! From the original PR: > Adds a rule to the bot that adds the s/triaged label to an issue which is opened by the core team (someone with write permissions on the repo). A lot of times these issues are tasks and/or very cryptic to the triage team. This way, the triage team will skip these issues and we assume the issues are valid ones and/or not issues that need triage. --- .github/policies/resourceManagement.yml | 41 +++++++++++++++++++++++-- 1 file changed, 38 insertions(+), 3 deletions(-) diff --git a/.github/policies/resourceManagement.yml b/.github/policies/resourceManagement.yml index 39ed64b00b3b..dba7e21840cc 100644 --- a/.github/policies/resourceManagement.yml +++ b/.github/policies/resourceManagement.yml @@ -581,13 +581,48 @@ configuration: description: Remove 's/try-latest-version' when new reply from author comes in - if: - payloadType: Issues - - activitySenderHasPermission: - permission: Write - isAction: action: Opened + - or: + - isActivitySender: + user: PureWeen + issueAuthor: False + - isActivitySender: + user: mattleibow + issueAuthor: False + - isActivitySender: + user: rmarinho + issueAuthor: False + - isActivitySender: + user: jsuarezruiz + issueAuthor: False + - isActivitySender: + user: Redth + issueAuthor: False + - isActivitySender: + user: StephaneDelcroix + issueAuthor: False + - isActivitySender: + user: samhouts + issueAuthor: False + - isActivitySender: + user: jamesmontemagno + issueAuthor: False + - isActivitySender: + user: jonathanpeppers + issueAuthor: False + - isActivitySender: + user: rachelkang + issueAuthor: False + - isActivitySender: + user: Eilon + issueAuthor: False + - isActivitySender: + user: jfversluis + issueAuthor: False then: - addLabel: label: s/triaged - description: Add 's/triaged' label to issues opened by the core team, we assume these issues do not need triaging + description: Add 's/triaged' label to issues opened by the (core) team, we assume these issues do not need triaging onFailure: onSuccess: From 64203ae2af29404e7bf494ebed0bbd9029ca78da Mon Sep 17 00:00:00 2001 From: Gerald Versluis Date: Tue, 23 Apr 2024 16:17:04 +0200 Subject: [PATCH 2/2] Update resourceManagement.yml --- .github/policies/resourceManagement.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/policies/resourceManagement.yml b/.github/policies/resourceManagement.yml index dba7e21840cc..0965d7c3bfde 100644 --- a/.github/policies/resourceManagement.yml +++ b/.github/policies/resourceManagement.yml @@ -614,7 +614,7 @@ configuration: - isActivitySender: user: rachelkang issueAuthor: False - - isActivitySender: + - isActivitySender: user: Eilon issueAuthor: False - isActivitySender: