Skip to content
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
26 changes: 15 additions & 11 deletions .github/policies/disallow-edits.yml
Original file line number Diff line number Diff line change
Expand Up @@ -8,8 +8,6 @@
- description: Close PRs that modify files whose "source of truth" is not in this repo.
if:
- payloadType: Pull_Request
- isAction:
action: Opened
- or:
- includesModifiedFiles:
files:
Expand All @@ -21,22 +19,22 @@
- xml/Microsoft.Extensions.FileSystemGlobbing.Internal*/*
- includesModifiedFiles:
files:
- xml/System.Composition
- xml/System.Composition/*
- includesModifiedFiles:
files:
- xml/System.Formats.Cbor
- xml/System.Formats.Cbor/*
- includesModifiedFiles:
files:
- xml/System.Formats.Nrbf
- xml/System.Formats.Nrbf/*
- includesModifiedFiles:
files:
- xml/System.Net.ServerSentEvents
- xml/System.Net.ServerSentEvents/*
- includesModifiedFiles:
files:
- xml/System.Numerics.Tensors
- xml/System.Numerics.Tensors/*
- includesModifiedFiles:
files:
- xml/System.Speech
- xml/System.Speech/*
- includesModifiedFile:
file: xml/System.Runtime.Serialization/ISerializationCodeDomSurrogateProvider.xml
- includesModifiedFile:
Expand All @@ -46,6 +44,12 @@
then:
- addReply:
reply: >-
Hello @${issueAuthor},

This PR will be closed because it edits files whose 'source of truth' is not in the repo.
@${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.
- if:
- not:
- or:

Check failure on line 50 in .github/policies/disallow-edits.yml

View check run for this annotation

Dotnet Policy Service / GitOps/YmlValidation

.github/policies/disallow-edits.yml#L50

Exception during deserialization: Invalid GitOps.ResourceManagement object specified:
- activitySenderHasPermission:
permission: write
- activitySenderHasPermission:
permission: admin
- closePullRequest