From 0e3dd5300e20673acd42c221b4e452ffe901fdba Mon Sep 17 00:00:00 2001 From: Genevieve Warren <24882762+gewarren@users.noreply.github.com> Date: Wed, 9 Oct 2024 13:01:19 -0700 Subject: [PATCH] use includeModifiedFile instead --- .github/policies/disallow-edits.yml | 40 ++++++++++++++--------------- 1 file changed, 20 insertions(+), 20 deletions(-) diff --git a/.github/policies/disallow-edits.yml b/.github/policies/disallow-edits.yml index 5d9f4c8f639..98b2b991f88 100644 --- a/.github/policies/disallow-edits.yml +++ b/.github/policies/disallow-edits.yml @@ -11,30 +11,30 @@ configuration: - isAction: action: Opened - or: - - filesMatchPattern: - pattern: xml/Microsoft.Extensions*/* + - 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*/* - - 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 + - includesModifiedFile: + file: xml/System.Composition/* + - includesModifiedFile: + file: xml/System.Formats.Cbor/* + - includesModifiedFile: + file: xml/System.Formats.Nrbf/* + - includesModifiedFile: + file: xml/System.Net.ServerSentEvents/* + - includesModifiedFile: + file: xml/System.Numerics.Tensors/* + - includesModifiedFile: + file: 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 then: - addReply: reply: >-