Skip to content

Commit

Permalink
Update bot to add a comment whenever a xaml file is changed (#6134)
Browse files Browse the repository at this point in the history
  • Loading branch information
jgonz120 authored Nov 4, 2024
1 parent c751e80 commit 1c5bf7b
Showing 1 changed file with 20 additions and 5 deletions.
25 changes: 20 additions & 5 deletions .github/policies/resourceManagement.yml
Original file line number Diff line number Diff line change
@@ -1,10 +1,10 @@
id:
id:
name: GitOps.PullRequestIssueManagement
description: GitOps.PullRequestIssueManagement primitive
owner:
owner:
resource: repository
disabled: false
where:
where:
configuration:
resourceManagementConfiguration:
scheduledSearches:
Expand Down Expand Up @@ -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:

0 comments on commit 1c5bf7b

Please sign in to comment.