Skip to content

Commit 6529b73

Browse files
Merge branch 'main' into TaraO-11B-24
2 parents e70b7fe + 17361f3 commit 6529b73

File tree

868 files changed

+7602
-4938
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

868 files changed

+7602
-4938
lines changed

.editorconfig

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -22,6 +22,8 @@ charset = utf-8-bom
2222
# Analyzers
2323
dotnet_analyzer_diagnostic.category-Security.severity = error
2424
dotnet_code_quality.ca1802.api_surface = private, internal
25+
# SYSLIB5001: Type is for evaluation purposes only and is subject to change or removal in future updates. Suppress this diagnostic to proceed.
26+
dotnet_diagnostic.SYSLIB5001.severity = suggestion
2527

2628
# Miscellaneous style rules
2729
dotnet_sort_system_directives_first = true

.github/dependabot.yml

Lines changed: 22 additions & 22 deletions
Original file line numberDiff line numberDiff line change
@@ -129,17 +129,6 @@ updates:
129129
dotnet:
130130
patterns:
131131
- "*" # Prefer a single PR per solution update.
132-
- package-ecosystem: "nuget"
133-
directory: "/docs/csharp/roslyn-sdk/snippets/source-generators" #source-generators.sln
134-
schedule:
135-
interval: "weekly"
136-
day: "wednesday"
137-
open-pull-requests-limit: 5
138-
groups:
139-
# Group .NET updates together for solutions.
140-
dotnet:
141-
patterns:
142-
- "*" # Prefer a single PR per solution update.
143132
- package-ecosystem: "nuget"
144133
directory: "/docs/csharp/roslyn-sdk/tutorials/snippets/how-to-write-csharp-analyzer-code-fix" #MakeConst.sln
145134
schedule:
@@ -789,6 +778,17 @@ updates:
789778
dotnet:
790779
patterns:
791780
- "*" # Prefer a single PR per project update.
781+
- package-ecosystem: "nuget"
782+
directory: "/docs/ai/quickstarts/snippets/local-ai" #ollama.csproj
783+
schedule:
784+
interval: "weekly"
785+
day: "wednesday"
786+
open-pull-requests-limit: 5
787+
groups:
788+
# Group .NET updates together for projects.
789+
dotnet:
790+
patterns:
791+
- "*" # Prefer a single PR per project update.
792792
- package-ecosystem: "nuget"
793793
directory: "/docs/ai/tutorials/snippets/llm-eval" #llm-eval.csproj
794794
schedule:
@@ -1009,6 +1009,17 @@ updates:
10091009
dotnet:
10101010
patterns:
10111011
- "*" # Prefer a single PR per project update.
1012+
- package-ecosystem: "nuget"
1013+
directory: "/docs/core/extensions/snippets/configuration/console-binder-gen" #console-binder-gen.csproj
1014+
schedule:
1015+
interval: "weekly"
1016+
day: "wednesday"
1017+
open-pull-requests-limit: 5
1018+
groups:
1019+
# Group .NET updates together for projects.
1020+
dotnet:
1021+
patterns:
1022+
- "*" # Prefer a single PR per project update.
10121023
- package-ecosystem: "nuget"
10131024
directory: "/docs/core/extensions/snippets/configuration/console-custom-logging" #console-custom-logging.csproj
10141025
schedule:
@@ -1845,17 +1856,6 @@ updates:
18451856
dotnet:
18461857
patterns:
18471858
- "*" # Prefer a single PR per project update.
1848-
- package-ecosystem: "nuget"
1849-
directory: "/docs/csharp/roslyn-sdk/snippets/source-generators/SourceGenerator" #SourceGenerator.csproj
1850-
schedule:
1851-
interval: "weekly"
1852-
day: "wednesday"
1853-
open-pull-requests-limit: 5
1854-
groups:
1855-
# Group .NET updates together for projects.
1856-
dotnet:
1857-
patterns:
1858-
- "*" # Prefer a single PR per project update.
18591859
- package-ecosystem: "nuget"
18601860
directory: "/docs/csharp/roslyn-sdk/tutorials/snippets/how-to-write-csharp-analyzer-code-fix/MakeConst/MakeConst.CodeFixes" #MakeConst.CodeFixes.csproj
18611861
schedule:

.github/policies/auto-merge.yml

Lines changed: 26 additions & 22 deletions
Original file line numberDiff line numberDiff line change
@@ -8,37 +8,41 @@ where:
88
configuration:
99
resourceManagementConfiguration:
1010
eventResponderTasks:
11-
- description: Approve and auto-squash-merge PRs to main labeled with 'auto-merge'
11+
- description: Approve and auto-squash-merge bot PRs to main labeled 'auto-merge'
1212
triggerOnOwnActions: true
1313
if:
14-
- payloadType: Pull_Request
15-
- labelAdded:
16-
label: ':octocat: auto-merge'
17-
- targetsBranch:
18-
branch: main
14+
- payloadType: Pull_Request
15+
- labelAdded:
16+
label: ':octocat: auto-merge'
17+
- targetsBranch:
18+
branch: main
19+
- isActivitySender:
20+
user: dotnet-policy-service[bot]
1921
then:
20-
- enableAutoMerge:
21-
mergeMethod: Squash
22-
- approvePullRequest:
23-
comment: "Approved; this PR will merge when all status checks pass."
22+
- enableAutoMerge:
23+
mergeMethod: Squash
24+
- approvePullRequest:
25+
comment: "Approved; this PR will merge when all status checks pass."
2426

25-
- description: Auto-merge PRs to live labeled with 'auto-merge'
27+
- description: Auto-merge policy service bot PRs to live labeled 'auto-merge'
2628
triggerOnOwnActions: true
2729
if:
28-
- payloadType: Pull_Request
29-
- labelAdded:
30-
label: ':octocat: auto-merge'
31-
- targetsBranch:
32-
branch: live
30+
- payloadType: Pull_Request
31+
- labelAdded:
32+
label: ':octocat: auto-merge'
33+
- targetsBranch:
34+
branch: live
35+
- isActivitySender:
36+
user: dotnet-policy-service[bot]
3337
then:
34-
- enableAutoMerge:
35-
mergeMethod: Merge
38+
- enableAutoMerge:
39+
mergeMethod: Merge
3640

3741
- description: Don't auto-merge PRs with 'auto-merge' label removed
3842
if:
39-
- payloadType: Pull_Request
40-
- labelRemoved:
41-
label: ':octocat: auto-merge'
43+
- payloadType: Pull_Request
44+
- labelRemoved:
45+
label: ':octocat: auto-merge'
4246
then:
43-
- disableAutoMerge
47+
- disableAutoMerge
4448

.github/policies/disallow-edits.yml

Lines changed: 61 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,61 @@
1+
id:
2+
name: GitOps.PullRequestIssueManagement
3+
description: GitOps.PullRequestIssueManagement primitive
4+
owner:
5+
resource: repository
6+
disabled: false
7+
where:
8+
configuration:
9+
resourceManagementConfiguration:
10+
eventResponderTasks:
11+
- description: Close PRs that change .github folder files.
12+
triggerOnOwnActions: true
13+
if:
14+
- payloadType: Pull_Request
15+
- isAction:
16+
action: Opened
17+
- filesMatchPattern:
18+
pattern: .github/*
19+
matchAny: true
20+
excludedFiles:
21+
- .github/CODEOWNERS
22+
- not:
23+
or:
24+
- activitySenderHasPermission:
25+
permission: admin
26+
- activitySenderHasPermission:
27+
permission: write
28+
- isActivitySender:
29+
user: dependabot
30+
- isActivitySender:
31+
user: dependabot[bot]
32+
- isActivitySender:
33+
user: dotnet-policy-service[bot]
34+
- isActivitySender:
35+
user: github-actions[bot]
36+
then:
37+
- addReply:
38+
reply: >-
39+
@${issueAuthor} - This PR edits a file in the .github folder, which is not allowed. CC @dotnet/docs.
40+
- closePullRequest
41+
42+
- description: Close PRs that change Framework Design Guidelines.
43+
triggerOnOwnActions: true
44+
if:
45+
- payloadType: Pull_Request
46+
- isAction:
47+
action: Opened
48+
- filesMatchPattern:
49+
pattern: docs/standard/design-guidelines/*
50+
matchAny: true
51+
- not:
52+
or:
53+
- activitySenderHasPermission:
54+
permission: admin
55+
- activitySenderHasPermission:
56+
permission: write
57+
then:
58+
- addReply:
59+
reply: >-
60+
@${issueAuthor} - This PR edits a file in the design-guidelines folder, which is disallowed. This content is reprinted by permission of Pearson Education, Inc. from Framework Design Guidelines: Conventions, Idioms, and Patterns for Reusable .NET Libraries, 2nd Edition, and cannot be edited. CC @dotnet/docs.
61+
- closePullRequest

.github/policies/label-prs.yml

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -64,10 +64,10 @@ configuration:
6464
if:
6565
- payloadType: Pull_Request
6666
- or:
67-
- isActivitySender:
68-
user: dependabot
69-
- isActivitySender:
70-
user: dependabot[bot]
67+
- isActivitySender:
68+
user: dependabot
69+
- isActivitySender:
70+
user: dependabot[bot]
7171
then:
7272
- addLabel:
7373
label: ":octocat: auto-merge"

.github/workflows/check-for-build-warnings.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@ jobs:
2020
with:
2121
egress-policy: audit
2222

23-
- uses: dotnet/docs-tools/actions/status-checker@5e8bcc78465d45a7544bba56509a1a69922b6a5a # main
23+
- uses: dotnet/docs-tools/actions/status-checker@main
2424
with:
2525
repo_token: ${{ secrets.GITHUB_TOKEN }}
2626
docs_path: "docs"

.github/workflows/clean-repo.yml

Lines changed: 0 additions & 54 deletions
This file was deleted.
Lines changed: 43 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,43 @@
1+
name: "clean repo - articles"
2+
3+
on:
4+
schedule:
5+
- cron: "0 1 1 * *" # Runs at 01:00, on day 1 of the month
6+
workflow_dispatch:
7+
8+
permissions:
9+
contents: read
10+
11+
jobs:
12+
clean-repo:
13+
runs-on: ubuntu-latest
14+
permissions:
15+
contents: write
16+
pull-requests: write
17+
18+
steps:
19+
- name: Harden Runner
20+
uses: step-security/harden-runner@91182cccc01eb5e619899d80e4e971d6181294a7 # v2.10.1
21+
with:
22+
egress-policy: audit
23+
24+
- uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2
25+
26+
# Call clean repo
27+
- name: Clean repo
28+
id: clean-repo-step
29+
uses: dotnet/docs-tools/cleanrepo@main
30+
with:
31+
function: "FindOrphanedArticles"
32+
docfx_directory: "."
33+
target_directory: "docs"
34+
url_base_path: "/dotnet"
35+
36+
# Create the PR for the work done by the "clean repo" tool
37+
- name: create-pull-request
38+
uses: peter-evans/create-pull-request@5e914681df9dc83aa4e4905692ca88beb2f9e91f
39+
with:
40+
branch: cleanrepo-orphaned-articles
41+
title: "Monthly chores: Delete orphaned articles"
42+
commit-message: "Bot 🤖 generated CleanRepo tool run"
43+
body: "Find and delete orphaned articles. Contributes to #..."
Lines changed: 43 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,43 @@
1+
name: "clean repo - images"
2+
3+
on:
4+
schedule:
5+
- cron: "0 1 1 * *" # Runs at 01:00, on day 1 of the month
6+
workflow_dispatch:
7+
8+
permissions:
9+
contents: read
10+
11+
jobs:
12+
clean-repo:
13+
runs-on: ubuntu-latest
14+
permissions:
15+
contents: write
16+
pull-requests: write
17+
18+
steps:
19+
- name: Harden Runner
20+
uses: step-security/harden-runner@91182cccc01eb5e619899d80e4e971d6181294a7 # v2.10.1
21+
with:
22+
egress-policy: audit
23+
24+
- uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2
25+
26+
# Call clean repo
27+
- name: Clean repo
28+
id: clean-repo-step
29+
uses: dotnet/docs-tools/cleanrepo@main
30+
with:
31+
function: "FindOrphanedImages"
32+
docfx_directory: "."
33+
target_directory: "docs"
34+
url_base_path: "/dotnet"
35+
36+
# Create the PR for the work done by the "clean repo" tool
37+
- name: create-pull-request
38+
uses: peter-evans/create-pull-request@5e914681df9dc83aa4e4905692ca88beb2f9e91f
39+
with:
40+
branch: cleanrepo-orphaned-images
41+
title: "Monthly chores: Delete orphaned images"
42+
commit-message: "Bot 🤖 generated CleanRepo tool run"
43+
body: "Find and delete orphaned images. Contributes to #..."

0 commit comments

Comments
 (0)