diff --git a/.github/policies/disallow-edits.yml b/.github/policies/disallow-edits.yml index ee9f6a9089f..5d9f4c8f639 100644 --- a/.github/policies/disallow-edits.yml +++ b/.github/policies/disallow-edits.yml @@ -11,42 +11,34 @@ configuration: - isAction: action: Opened - or: - - includesModifiedFiles: - files: - - xml/Microsoft.Extensions*/* - excludedFiles: - # These files use this repo as source-of-truth. - - xml/Microsoft.Extensions.FileSystemGlobbing/* - - xml/Microsoft.Extensions.FileSystemGlobbing.Abstractions/* - - xml/Microsoft.Extensions.FileSystemGlobbing.Internal*/* - - includesModifiedFiles: - files: - - xml/System.Composition/* - - includesModifiedFiles: - files: - - xml/System.Formats.Cbor/* - - includesModifiedFiles: - files: - - xml/System.Formats.Nrbf/* - - includesModifiedFiles: - files: - - xml/System.Net.ServerSentEvents/* - - includesModifiedFiles: - files: - - xml/System.Numerics.Tensors/* - - includesModifiedFiles: - files: - - xml/System.Speech/* - - includesModifiedFile: - file: xml/System.Runtime.Serialization/ISerializationCodeDomSurrogateProvider.xml - - includesModifiedFile: - file: xml/System.Runtime.Serialization/ImportOptions.xml - - includesModifiedFile: - file: xml/System.Runtime.Serialization/XsdDataContractExporter.xml + - filesMatchPattern: + pattern: 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*/* + - filesMatchPattern: + pattern: xml/System.Composition/* + - filesMatchPattern: + pattern: xml/System.Formats.Cbor/* + - filesMatchPattern: + pattern: xml/System.Formats.Nrbf/* + - filesMatchPattern: + pattern: xml/System.Net.ServerSentEvents/* + - filesMatchPattern: + pattern: xml/System.Numerics.Tensors/* + - filesMatchPattern: + pattern: xml/System.Speech/* + - filesMatchPattern: + pattern: xml/System.Runtime.Serialization/ISerializationCodeDomSurrogateProvider.xml + - filesMatchPattern: + pattern: xml/System.Runtime.Serialization/ImportOptions.xml + - filesMatchPattern: + pattern: xml/System.Runtime.Serialization/XsdDataContractExporter.xml then: - addReply: reply: >- - @${issueAuthor} - This PR edits files whose 'source of truth' for documentation is not in this repo. If you're editing the documentation, please make these updates in the /// comments in the source repo (either dotnet/runtime or dotnet/extensions) instead. + @${issueAuthor} - This PR edits one or more files whose 'source of truth' for documentation is not in this repo. To see which files are affected, look in the .github/policies/disallow-edits.yml file. Please make documentation updates for these assemblies in the /// comments in the source repo (either dotnet/runtime or dotnet/extensions) instead. - if: - or: - activitySenderHasPermission: