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