Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Update bot to add a comment whenever a xaml file is changed #6134

Merged
merged 1 commit into from
Nov 4, 2024
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
25 changes: 20 additions & 5 deletions .github/policies/resourceManagement.yml
Original file line number Diff line number Diff line change
@@ -1,12 +1,12 @@
id:
id:
name: GitOps.PullRequestIssueManagement
description: GitOps.PullRequestIssueManagement primitive
owner:
owner:
resource: repository
disabled: false
where:
where:
configuration:
resourceManagementConfiguration:

Check failure on line 9 in .github/policies/resourceManagement.yml

View check run for this annotation

Microsoft GitHub Policy Service / GitOps/YmlValidation

.github/policies/resourceManagement.yml#L9

Exception during deserialization. The given key 'resourceManagementConfiguration' was not present in the dictionary.
scheduledSearches:
- description: '[stale non-community PR] [5-1] Search for PRs with no activity over 7 days and warn. (except community PRs)'
frequencies:
Expand Down Expand Up @@ -155,5 +155,20 @@
- 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:
Loading