Skip to content

Commit edafb51

Browse files
authored
Merge main branch to release/dnup (#51827)
2 parents c1c82cf + 6fe170a commit edafb51

File tree

797 files changed

+21986
-7894
lines changed

Some content is hidden

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

797 files changed

+21986
-7894
lines changed

.azuredevops/dependabot.yml

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
version: 2
2+
3+
# Disabling dependabot on Azure DevOps as this is a mirrored repo. Updates should go through github.
4+
enable-campaigned-updates: false
5+
enable-security-updates: false

.editorconfig

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -515,11 +515,11 @@ dotnet_diagnostic.IDE0040.severity = warning
515515
insert_final_newline = false
516516

517517
# Verify settings
518-
[*.{received,verified}.{txt,xml,json}]
518+
[*.{received,verified}.{txt,xml,json,sh,zsh,nu,fish,ps1}]
519519
charset = "utf-8-bom"
520520
end_of_line = lf
521521
indent_size = unset
522522
indent_style = unset
523523
insert_final_newline = false
524524
tab_width = unset
525-
trim_trailing_whitespace = false
525+
trim_trailing_whitespace = false

.gitattributes

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -67,3 +67,7 @@
6767
*.verified.txt text eol=lf working-tree-encoding=UTF-8
6868
*.verified.xml text eol=lf working-tree-encoding=UTF-8
6969
*.verified.json text eol=lf working-tree-encoding=UTF-8
70+
*.verified.sh text eol=lf working-tree-encoding=UTF-8
71+
*.verified.zsh text eol=lf working-tree-encoding=UTF-8
72+
*.verified.nu text eol=lf working-tree-encoding=UTF-8
73+
*.verified.fish text eol=lf working-tree-encoding=UTF-8

.github/copilot-instructions.md

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,7 @@
1+
Use the instructions from the main branch if available: @dotnet/sdk/files/.github/copilot-instructions.md
2+
3+
If the instructions from main are not available, use the following as a fallback:
4+
15
Coding Style and Changes:
26
- Code should match the style of the file it's in.
37
- Changes should be minimal to resolve a problem in a clean way.
@@ -34,3 +38,8 @@ Localization:
3438

3539
Documentation:
3640
- Do not manually edit files under documentation/manpages/sdk as these are generated based on documentation and should not be manually modified.
41+
42+
External Dependencies:
43+
- Changes that require modifications to the dotnet/templating repository (Microsoft.TemplateEngine packages) should be made directly in that repository, not worked around in this repo.
44+
- The dotnet/templating repository owns the TemplateEngine.Edge, TemplateEngine.Abstractions, and related packages.
45+
- If a change requires updates to template engine behavior or formatting (e.g., DisplayName properties), file an issue in dotnet/templating and make the changes there rather than adding workarounds in this SDK repository.

.github/policies/resourceManagement.yml

Lines changed: 24 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,10 @@
1-
id:
1+
id:
22
name: GitOps.PullRequestIssueManagement
33
description: GitOps.PullRequestIssueManagement primitive
4-
owner:
4+
owner:
55
resource: repository
66
disabled: false
7-
where:
7+
where:
88
configuration:
99
resourceManagementConfiguration:
1010
scheduledSearches:
@@ -90,7 +90,7 @@ configuration:
9090
label: needs-breaking-change-doc-created
9191
- addReply:
9292
reply: >-
93-
Added `needs-breaking-change-doc-created` label because this PR has the `breaking-change` label.
93+
Added `needs-breaking-change-doc-created` label because this PR has the `breaking-change` label.
9494
9595
9696
When you commit this breaking change:
@@ -103,5 +103,23 @@ configuration:
103103
104104
You can refer to the [.NET SDK breaking change guidelines](https://github.com/dotnet/sdk/blob/main/documentation/project-docs/breaking-change-guidelines.md)
105105
description: Add breaking change instructions to PR.
106-
onFailure:
107-
onSuccess:
106+
- description: Remind Telemetry PR authors of the telemetry guidelines
107+
if:
108+
- payloadType: Pull_Request
109+
- labelAdded:
110+
label: Area-Telemetry
111+
then:
112+
- addReply:
113+
reply: >-
114+
This PR has been labeled with `Area-Telemetry`. Please ensure that any telemetry changes in this PR
115+
116+
* comply with the [published guidance](https://learn.microsoft.com/dotnet/core/tools/telemetry#data-points)
117+
* are added to the [repo-local telemetry documentation](./documentation/project-docs/telemetry.md)
118+
* get a matching .NET Docs issue raised to document the telemetry changes
119+
* Go to https://learn.microsoft.com/dotnet/core/tools/telemetry
120+
* Scroll down to the bottom and click the 'Open a documentation issue' link to create an issue with pre-filled details
121+
- requestReview:
122+
reviewer: dsplaisted
123+
124+
onFailure:
125+
onSuccess:

.github/workflows/add-lockdown-label.yml

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,11 @@ name: Add Branch Lockdown Label to PRs
33
on:
44
pull_request_target:
55
workflow_dispatch: # Allows manual triggering of the workflow
6+
branches:
7+
- 'release/8.*'
8+
- 'release/9.*'
9+
- 'release/10.*'
10+
- 'main'
611

712
permissions:
813
actions: write # For managing the operation state cache
@@ -11,6 +16,8 @@ permissions:
1116
jobs:
1217
add-label:
1318
runs-on: ubuntu-latest
19+
# Only run on the main repository, not forks
20+
if: github.repository == 'dotnet/sdk'
1421

1522
permissions:
1623
contents: read
@@ -19,6 +26,8 @@ jobs:
1926
steps:
2027
- name: Checkout repository
2128
uses: actions/checkout@v2
29+
with:
30+
persist-credentials: false
2231

2332
- name: Install jq
2433
run: sudo apt-get install -y jq

.github/workflows/copilot-setup-steps.yml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -20,6 +20,8 @@ jobs:
2020
runs-on: ubuntu-latest
2121
steps:
2222
- uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2
23+
with:
24+
persist-credentials: false
2325
- name: Do an initial build to ensure all dependencies are restored
2426
continue-on-error: true
2527
run: |

.github/workflows/remove-lockdown-label.yml

Lines changed: 7 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,15 +2,20 @@ name: Remove Lockdown Label from PRs
22

33
on:
44
pull_request_target:
5-
types: [closed]
5+
branches:
6+
- 'release/8.*'
7+
- 'release/9.*'
8+
- 'release/10.*'
9+
- 'main'
610

711
permissions:
812
actions: write
913
pull-requests: write
1014

1115
jobs:
1216
remove-labels:
13-
if: github.event.pull_request.merged == true && contains(github.event.pull_request.labels.*.name, 'Branding')
17+
# Only run on the main repository, not forks
18+
if: github.event.pull_request.merged == true && contains(github.event.pull_request.labels.*.name, 'Branding') && github.repository == 'dotnet/sdk'
1419
runs-on: ubuntu-latest
1520
steps:
1621
- name: PR's only change is <VersionFeature> in eng/Versions.props

.github/workflows/update-man-pages.yml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -17,6 +17,7 @@ jobs:
1717
uses: actions/checkout@v4
1818
with:
1919
ref: release/10.0.1xx
20+
persist-credentials: false
2021

2122
- name: Update man-pages
2223
run: |

.github/workflows/update-static-web-assets-baselines.yml

Lines changed: 15 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -24,9 +24,10 @@ jobs:
2424

2525
- name: Checkout PR branch
2626
run: |
27-
gh pr checkout ${{ github.event.inputs.pr_number }}
27+
gh pr checkout ${GITHUB_EVENT_INPUTS_PR_NUMBER}
2828
env:
2929
GH_TOKEN: ${{ secrets.GITHUB_TOKEN }}
30+
GITHUB_EVENT_INPUTS_PR_NUMBER: ${{ github.event.inputs.pr_number }}
3031

3132
- name: Run build script
3233
id: build
@@ -79,33 +80,39 @@ jobs:
7980
- name: Comment on PR - No changes
8081
if: steps.update.outcome == 'success' && steps.check-changes.outputs.changes == 'false'
8182
run: |
82-
gh pr comment ${{ github.event.inputs.pr_number }} \
83+
gh pr comment ${GITHUB_EVENT_INPUTS_PR_NUMBER} \
8384
--body "No baselines were updated."
8485
env:
8586
GH_TOKEN: ${{ secrets.GITHUB_TOKEN }}
87+
GITHUB_EVENT_INPUTS_PR_NUMBER: ${{ github.event.inputs.pr_number }}
8688

8789
- name: Comment on PR - Changes pushed
8890
if: steps.commit.outcome == 'success'
8991
run: |
90-
gh pr comment ${{ github.event.inputs.pr_number }} \
92+
gh pr comment ${GITHUB_EVENT_INPUTS_PR_NUMBER} \
9193
--body "Baselines updated."
9294
env:
9395
GH_TOKEN: ${{ secrets.GITHUB_TOKEN }}
96+
GITHUB_EVENT_INPUTS_PR_NUMBER: ${{ github.event.inputs.pr_number }}
9497

9598
- name: Comment on PR - Failure
9699
if: steps.build.outcome == 'failure' || steps.update.outcome == 'failure' || (steps.check-changes.outputs.changes == 'true' && steps.commit.outcome == 'failure')
97100
run: |
98101
ERROR_MSG="Update baselines failed"
99102
100-
if [[ "${{ steps.build.outcome }}" == "failure" ]]; then
103+
if [[ "${STEPS_BUILD_OUTCOME}" == "failure" ]]; then
101104
ERROR_MSG="$ERROR_MSG: Build script failed"
102-
elif [[ "${{ steps.update.outcome }}" == "failure" ]]; then
105+
elif [[ "${STEPS_UPDATE_OUTCOME}" == "failure" ]]; then
103106
ERROR_MSG="$ERROR_MSG: Update baselines script failed"
104-
elif [[ "${{ steps.commit.outcome }}" == "failure" ]]; then
107+
elif [[ "${STEPS_COMMIT_OUTCOME}" == "failure" ]]; then
105108
ERROR_MSG="$ERROR_MSG: Failed to commit or push changes"
106109
fi
107110
108-
gh pr comment ${{ github.event.inputs.pr_number }} \
111+
gh pr comment ${GITHUB_EVENT_INPUTS_PR_NUMBER} \
109112
--body "$ERROR_MSG"
110113
env:
111-
GH_TOKEN: ${{ secrets.GITHUB_TOKEN }}
114+
GH_TOKEN: ${{ secrets.GITHUB_TOKEN }}
115+
STEPS_BUILD_OUTCOME: ${{ steps.build.outcome }}
116+
STEPS_UPDATE_OUTCOME: ${{ steps.update.outcome }}
117+
STEPS_COMMIT_OUTCOME: ${{ steps.commit.outcome }}
118+
GITHUB_EVENT_INPUTS_PR_NUMBER: ${{ github.event.inputs.pr_number }}

0 commit comments

Comments
 (0)