From 8fc89a6db4d080a601eead0cf52639d58905fd1a Mon Sep 17 00:00:00 2001 From: Kaleb Luedtke Date: Tue, 28 Apr 2026 19:27:45 -0500 Subject: [PATCH] Remove CLA label if author agrees on that PR (#366337) --- .../policies/labelManagement.issueUpdated.yml | 18 ++++++++++++++++++ 1 file changed, 18 insertions(+) diff --git a/.github/policies/labelManagement.issueUpdated.yml b/.github/policies/labelManagement.issueUpdated.yml index 5b90412aa3c..cca88282738 100644 --- a/.github/policies/labelManagement.issueUpdated.yml +++ b/.github/policies/labelManagement.issueUpdated.yml @@ -196,6 +196,24 @@ configuration: label: Needs-Author-Feedback - addLabel: label: Needs-Attention # This will automatically assign the ICM Users + - description: >- + If an author agrees to the CLA on a Pull Request + * Remove the Needs-CLA Label + if: + - or: + - payloadType: Pull_Request_Review + - payloadType: Pull_Request_Review_Comment + - payloadType: Issue_Comment + - isActivitySender: + issueAuthor: True + - hasLabel: + label: Needs-CLA + - commentContains: + pattern: '@microsoft-github-policy-service agree' + isRegex: False + then: + - removeLabel: + label: Needs-CLA - description: >- When changes are requested on a pull request * Disable automerge