From fd1b991290f01031575b39369760d442614b5d91 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Jonatan=20Gonzalez=20=F0=9F=90=B1=F0=9F=8C=B4?= Date: Fri, 1 Nov 2024 15:10:46 -0700 Subject: [PATCH] Update bot to add a comment whenever a xaml file is changed --- .github/policies/resourceManagement.yml | 25 ++++++++++++++++++++----- 1 file changed, 20 insertions(+), 5 deletions(-) diff --git a/.github/policies/resourceManagement.yml b/.github/policies/resourceManagement.yml index 99e7d3fc8ad..8b1a4debcab 100644 --- a/.github/policies/resourceManagement.yml +++ b/.github/policies/resourceManagement.yml @@ -1,10 +1,10 @@ -id: +id: name: GitOps.PullRequestIssueManagement description: GitOps.PullRequestIssueManagement primitive -owner: +owner: resource: repository disabled: false -where: +where: configuration: resourceManagementConfiguration: scheduledSearches: @@ -155,5 +155,20 @@ configuration: - removeLabel: label: Status:No recent activity description: '[stale community PR] [5-4] Remove "Status:No recent activity" if there are any reviews.' -onFailure: -onSuccess: + - if: + - payloadType: Pull_Request + - isAction: + action: Opened + - filesMatchPattern: + pattern: '.*\.xaml$' + matchAny: true + then: + - addReply: + reply: 'This PR contains changes to XAML files. Verify that you''ve completed the following tasks: + + - [ ] Complete [accessibility testing](https://github.com/NuGet/NuGet.Client/blob/dev/docs/ui-guidelines.md#accessibility-testing). + + - [ ] Complete [localizability testing](https://github.com/NuGet/NuGet.Client/blob/dev/docs/ui-guidelines.md#localizability-testing).' + description: 'Remind PR author to test accessibility and localizability' +onFailure: +onSuccess: