Skip to content

Use matchAny #10544

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

Merged
merged 1 commit into from
Oct 10, 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
200 changes: 46 additions & 154 deletions .github/policies/disallow-edits.yml
Original file line number Diff line number Diff line change
Expand Up @@ -10,158 +10,50 @@ configuration:
- payloadType: Pull_Request
- isAction:
action: Opened
- or:
- filesMatchPattern:
pattern: xml/Microsoft.Extensions*/*
matchAny: true
excludedFiles:
- xml/Microsoft.Extensions.FileSystemGlobbing/*
- xml/Microsoft.Extensions.FileSystemGlobbing.Abstractions/*
- xml/Microsoft.Extensions.FileSystemGlobbing.Internal*/*
- filesMatchPattern:
matchAny: true
pattern: xml/System.Composition/*
- filesMatchPattern:
matchAny: true
pattern: xml/System.Formats.Cbor/*
- filesMatchPattern:
matchAny: true
pattern: xml/System.Formats.Nrbf/*
- filesMatchPattern:
matchAny: true
pattern: xml/System.Net.ServerSentEvents/*
- filesMatchPattern:
matchAny: true
pattern: xml/System.Numerics.Tensors/*
- filesMatchPattern:
matchAny: true
pattern: xml/System.Speech/*
- filesMatchPattern:
matchAny: true
pattern: xml/System.Runtime.Serialization/ISerializationCodeDomSurrogateProvider.xml
- filesMatchPattern:
matchAny: true
pattern: xml/System.Runtime.Serialization/ImportOptions.xml
- filesMatchPattern:
matchAny: true
pattern: xml/System.Runtime.Serialization/XsdDataContractExporter.xml
then:
- if:
- includesModifiedFile:
file: xml/Microsoft.Extensions*/*
# TODO - These files do use this repo as source-of-truth - how to exclude them?
# - xml/Microsoft.Extensions.FileSystemGlobbing/*
# - xml/Microsoft.Extensions.FileSystemGlobbing.Abstractions/*
# - xml/Microsoft.Extensions.FileSystemGlobbing.Internal*/*
then:
- addReply:
reply: >-
@${issueAuthor} - This PR edits one or more files whose 'source of truth' for documentation is not in this repo. Please make documentation updates for 'Microsoft.Extensions' in the /// comments in the dotnet/runtime or dotnet/extensions repo instead.
- if:
- or:
- activitySenderHasPermission:
permission: None
- activitySenderHasPermission:
permission: Read
then:
- closePullRequest
- if:
- includesModifiedFile:
file: xml/System.Composition/*
then:
- addReply:
reply: >-
@${issueAuthor} - This PR edits one or more files whose 'source of truth' for documentation is not in this repo. Please make documentation updates for 'System.Composition' in the /// comments in the dotnet/runtime repo instead.
- if:
- or:
- activitySenderHasPermission:
permission: None
- activitySenderHasPermission:
permission: Read
then:
- closePullRequest
- if:
- includesModifiedFile:
file: xml/System.Formats.Cbor/*
then:
- addReply:
reply: >-
@${issueAuthor} - This PR edits one or more files whose 'source of truth' for documentation is not in this repo. Please make documentation updates for 'System.Formats.Cbor' in the /// comments in the dotnet/runtime repo instead.
- if:
- or:
- activitySenderHasPermission:
permission: None
- activitySenderHasPermission:
permission: Read
then:
- closePullRequest
- if:
- includesModifiedFile:
file: xml/System.Formats.Nrbf/*
then:
- addReply:
reply: >-
@${issueAuthor} - This PR edits one or more files whose 'source of truth' for documentation is not in this repo. Please make documentation updates for 'System.Formats.Nrbf' in the /// comments in the dotnet/runtime repo instead.
- if:
- or:
- activitySenderHasPermission:
permission: None
- activitySenderHasPermission:
permission: Read
then:
- closePullRequest
- if:
- includesModifiedFile:
file: xml/System.Net.ServerSentEvents/*
then:
- addReply:
reply: >-
@${issueAuthor} - This PR edits one or more files whose 'source of truth' for documentation is not in this repo. Please make documentation updates for 'System.Net.ServerSentEvents' in the /// comments in the dotnet/runtime repo instead.
- if:
- or:
- activitySenderHasPermission:
permission: None
- activitySenderHasPermission:
permission: Read
then:
- closePullRequest
- if:
- includesModifiedFile:
file: xml/System.Numerics.Tensors/*
then:
- addReply:
reply: >-
@${issueAuthor} - This PR edits one or more files whose 'source of truth' for documentation is not in this repo. Please make documentation updates for 'System.Numerics.Tensors' in the /// comments in the dotnet/runtime repo instead.
- if:
- or:
- activitySenderHasPermission:
permission: None
- activitySenderHasPermission:
permission: Read
then:
- closePullRequest
- if:
- includesModifiedFile:
file: xml/System.Speech/*
then:
- addReply:
reply: >-
@${issueAuthor} - This PR edits one or more files whose 'source of truth' for documentation is not in this repo. Please make documentation updates for 'System.Speech' in the /// comments in the dotnet/runtime repo instead.
- if:
- or:
- activitySenderHasPermission:
permission: None
- activitySenderHasPermission:
permission: Read
then:
- closePullRequest
- if:
- includesModifiedFile:
file: xml/System.Runtime.Serialization/ISerializationCodeDomSurrogateProvider.xml
then:
- addReply:
reply: >-
@${issueAuthor} - This PR edits one or more files whose 'source of truth' for documentation is not in this repo. Please make documentation updates for 'ISerializationCodeDomSurrogateProvider' in the /// comments in the dotnet/runtime repo instead.
- if:
- or:
- activitySenderHasPermission:
permission: None
- activitySenderHasPermission:
permission: Read
then:
- closePullRequest
- if:
- includesModifiedFile:
file: xml/System.Runtime.Serialization/ImportOptions.xml
then:
- addReply:
reply: >-
@${issueAuthor} - This PR edits one or more files whose 'source of truth' for documentation is not in this repo. Please make documentation updates for 'ImportOptions' in the /// comments in the dotnet/runtime repo instead.
- if:
- or:
- activitySenderHasPermission:
permission: None
- activitySenderHasPermission:
permission: Read
then:
- closePullRequest
- if:
- includesModifiedFile:
file: xml/System.Runtime.Serialization/XsdDataContractExporter.xml
then:
- addReply:
reply: >-
@${issueAuthor} - This PR edits one or more files whose 'source of truth' for documentation is not in this repo. Please make documentation updates for 'XsdDataContractExporter' in the /// comments in the dotnet/runtime repo instead.
- if:
- or:
- activitySenderHasPermission:
permission: None
- activitySenderHasPermission:
permission: Read
then:
- closePullRequest
- addReply:
reply: >-
@${issueAuthor} - This PR edits one or more files whose 'source of truth' for documentation is not in this repo. Please make documentation updates in the /// comments in the dotnet/runtime repo (or dotnet/extensions repo) instead.
- if:
- or:
- activitySenderHasPermission:
permission: None
- activitySenderHasPermission:
permission: Read
then:
- closePullRequest