From 6da85a83c468ce79261c7a88b637f721c51091ca Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Carlos=20S=C3=A1nchez=20L=C3=B3pez?= <1175054+carlossanlop@users.noreply.github.com> Date: Fri, 27 Sep 2024 12:03:46 -0700 Subject: [PATCH 1/3] Couple more undoc APIs from .NET 9 (#10445) * Fix File.AppendAllBytesAsync returns * Default construcvtor summary for DebuggerDisableUserUnhandledExceptionsAttribute --- .../DebuggerDisableUserUnhandledExceptionsAttribute.xml | 2 +- xml/System.IO/File.xml | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/xml/System.Diagnostics/DebuggerDisableUserUnhandledExceptionsAttribute.xml b/xml/System.Diagnostics/DebuggerDisableUserUnhandledExceptionsAttribute.xml index 5f321f84b1d..e8d44af2bcd 100644 --- a/xml/System.Diagnostics/DebuggerDisableUserUnhandledExceptionsAttribute.xml +++ b/xml/System.Diagnostics/DebuggerDisableUserUnhandledExceptionsAttribute.xml @@ -68,7 +68,7 @@ - To be added. + Initializes a new instance of the class. To be added. diff --git a/xml/System.IO/File.xml b/xml/System.IO/File.xml index d6687e419a6..19f9f83dae4 100644 --- a/xml/System.IO/File.xml +++ b/xml/System.IO/File.xml @@ -345,8 +345,8 @@ Asynchronously appends the specified byte array to the end of the file at the given path. If the file doesn't exist, this method creates a new file. If the operation is canceled, the task will return in a canceled state. - To be added. - A task that represents the asynchronous append operation. + A task that represents the asynchronous append operation. + To be added. is . From bd363bbf73e0d4671008550584fd1311a58e625f Mon Sep 17 00:00:00 2001 From: Genevieve Warren <24882762+gewarren@users.noreply.github.com> Date: Fri, 27 Sep 2024 13:54:33 -0700 Subject: [PATCH 2/3] try to fix policy (#10448) --- .github/policies/disallow-edits.yml | 82 ++++++++++++++++------------- 1 file changed, 46 insertions(+), 36 deletions(-) diff --git a/.github/policies/disallow-edits.yml b/.github/policies/disallow-edits.yml index a31f15397aa..14920829730 100644 --- a/.github/policies/disallow-edits.yml +++ b/.github/policies/disallow-edits.yml @@ -3,39 +3,49 @@ description: GitOps.PullRequestIssueManagement primitive resource: repository configuration: - resourceManagementConfiguration: - eventResponderTasks: - - description: Close PRs that modify files whose "source of truth" is not in this repo. - if: - - payloadType: Pull_Request - - isAction: - action: Opened - - or: - - filesMatchPattern: - pattern: xml/Microsoft.Extensions*/*.xml - excludedFiles: # These files use this repo as source-of-truth. - - xml/Microsoft.Extensions.FileSystemGlobbing/*.xml - - xml/Microsoft.Extensions.FileSystemGlobbing.Abstractions/*.xml - - xml/Microsoft.Extensions.FileSystemGlobbing.Internal*/*.xml - - filesMatchPattern: - pattern: xml/System.Composition/*.xml - - filesMatchPattern: - pattern: xml/System.Formats.Cbor/*.xml - - filesMatchPattern: - pattern: xml/System.Formats.Nrbf/*.xml - - filesMatchPattern: - pattern: xml/System.Net.ServerSentEvents/*.xml - - filesMatchPattern: - pattern: xml/System.Numerics.Tensors/*.xml - - filesMatchPattern: - pattern: xml/System.Speech/*.xml - - 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: "@${issueAuthor} This PR will be closed because it edits files whose 'source of truth' is not in the repo." - - closePullRequest + resourceManagementConfiguration: + eventResponderTasks: + - 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: + - 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 + then: + - addReply: + reply: >- + Hello @${issueAuthor}, + + This PR will be closed because it edits files whose 'source of truth' is not in the repo. From 2843e6aa4b53eab1ab698e52e510f8498cc74058 Mon Sep 17 00:00:00 2001 From: Genevieve Warren <24882762+gewarren@users.noreply.github.com> Date: Fri, 27 Sep 2024 14:21:30 -0700 Subject: [PATCH 3/3] Fix file paths for disabling Edit button (#10449) --- docfx.json | 20 ++++++++++---------- 1 file changed, 10 insertions(+), 10 deletions(-) diff --git a/docfx.json b/docfx.json index 36fc6a77226..d3d0d6da5be 100644 --- a/docfx.json +++ b/docfx.json @@ -147,16 +147,16 @@ "api/**.yml": ["csharp", "vb", "fsharp", "cpp"] }, "open_to_public_contributors": { - "xml/Microsoft.Extensions*/*.xml": false, - "xml/System.Composition/*.xml": false, - "xml/System.Formats.Cbor/*.xml": false, - "xml/System.Formats.Nrbf/*.xml": false, - "xml/System.Net.ServerSentEvents/*.xml": false, - "xml/System.Numerics.Tensors/*.xml": false, - "xml/System.Runtime.Serialization/ISerializationCodeDomSurrogateProvider.xml": false, - "xml/System.Runtime.Serialization/ImportOptions.xml": false, - "xml/System.Runtime.Serialization/XsdDataContractExporter.xml": false, - "xml/System.Speech*/*.xml": false + "api/Microsoft.Extensions**": false, + "api/System.Composition**": false, + "api/System.Formats.Cbor**": false, + "api/System.Formats.Nrbf**": false, + "api/System.Net.ServerSentEvents**": false, + "api/System.Numerics.Tensors**": false, + "api/System.Runtime.Serialization.ISerializationCodeDomSurrogateProvider.yml": false, + "api/System.Runtime.Serialization.ImportOptions.yml": false, + "api/System.Runtime.Serialization.XsdDataContractExporter.yml": false, + "api/System.Speech**": false } }, "dest": "_site",