Skip to content

Commit 8f6530c

Browse files
authored
Merge pull request #43050 from dotnet/main
Merge `main` to `live`.
2 parents cfdbc45 + ad05aaf commit 8f6530c

File tree

81 files changed

+723
-546
lines changed

Some content is hidden

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

81 files changed

+723
-546
lines changed

.github/policies/auto-merge.yml

Lines changed: 31 additions & 22 deletions
Original file line numberDiff line numberDiff line change
@@ -8,37 +8,46 @@ 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+
- or:
20+
- isActivitySender:
21+
user: azure-sdk
22+
- isActivitySender:
23+
user: dependabot
24+
- isActivitySender:
25+
user: dependabot[bot]
1926
then:
20-
- enableAutoMerge:
21-
mergeMethod: Squash
22-
- approvePullRequest:
23-
comment: "Approved; this PR will merge when all status checks pass."
27+
- enableAutoMerge:
28+
mergeMethod: Squash
29+
- approvePullRequest:
30+
comment: "Approved; this PR will merge when all status checks pass."
2431

25-
- description: Auto-merge PRs to live labeled with 'auto-merge'
32+
- description: Auto-merge policy service bot PRs to live labeled 'auto-merge'
2633
triggerOnOwnActions: true
2734
if:
28-
- payloadType: Pull_Request
29-
- labelAdded:
30-
label: ':octocat: auto-merge'
31-
- targetsBranch:
32-
branch: live
35+
- payloadType: Pull_Request
36+
- labelAdded:
37+
label: ':octocat: auto-merge'
38+
- targetsBranch:
39+
branch: live
40+
- isActivitySender:
41+
user: dotnet-policy-service[bot]
3342
then:
34-
- enableAutoMerge:
35-
mergeMethod: Merge
43+
- enableAutoMerge:
44+
mergeMethod: Merge
3645

3746
- description: Don't auto-merge PRs with 'auto-merge' label removed
3847
if:
39-
- payloadType: Pull_Request
40-
- labelRemoved:
41-
label: ':octocat: auto-merge'
48+
- payloadType: Pull_Request
49+
- labelRemoved:
50+
label: ':octocat: auto-merge'
4251
then:
43-
- disableAutoMerge
52+
- disableAutoMerge
4453

.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/policies/policy-edits.yml

Lines changed: 32 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,32 @@
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: Flag 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+
then:
29+
- addReply:
30+
reply: >-
31+
@${issueAuthor} - This PR edits a file in the .github folder, which is not allowed. CC @dotnet/docs.
32+
- closePullRequest

.openpublishing.redirection.core.json

Lines changed: 8 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -877,6 +877,14 @@
877877
"source_path_from_root": "/docs/core/porting/upgrade-assistant-aspnetmvc.md",
878878
"redirect_url": "/aspnet/core/migration/mvc"
879879
},
880+
{
881+
"source_path_from_root": "/docs/core/porting/upgrade-assistant-install-legacy.md",
882+
"redirect_url": "/dotnet/core/porting/upgrade-assistant-wcf"
883+
},
884+
{
885+
"source_path_from_root": "/docs/core/porting/upgrade-assistant-uwp-framework.md",
886+
"redirect_url": "/windows/apps/windows-app-sdk/migrate-to-windows-app-sdk/upgrade-assistant"
887+
},
880888
{
881889
"source_path_from_root": "/docs/core/porting/upgrade-assistant-winforms-framework.md",
882890
"redirect_url": "/dotnet/desktop/winforms/migration/"
@@ -1345,10 +1353,6 @@
13451353
{
13461354
"source_path_from_root": "/docs/fundamentals/networking/tcp/tcp-overview.md",
13471355
"redirect_url": "/dotnet/fundamentals/networking/sockets/tcp-classes"
1348-
},
1349-
{
1350-
"source_path_from_root": "/docs/core/porting/upgrade-assistant-uwp-framework.md",
1351-
"redirect_url": "/windows/apps/windows-app-sdk/migrate-to-windows-app-sdk/upgrade-assistant"
13521356
}
13531357
]
13541358
}

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -43,7 +43,7 @@ to clarify expected behavior in our community. For more information, see the [.N
4343
- [![Markdownlint](https://github.com/dotnet/docs/actions/workflows/markdownlint.yml/badge.svg)](https://github.com/dotnet/docs/actions/workflows/markdownlint.yml): The current status for the entire repositories Markdown linter status.
4444
- [![MSDocs build verifier](https://github.com/dotnet/docs/actions/workflows/docs-verifier.yml/badge.svg)](https://github.com/dotnet/docs/actions/workflows/docs-verifier.yml): Runs various Markdown verifications, beyond the linter, such as ensuring links and redirects are valid.
4545
- [![No response](https://github.com/dotnet/docs/actions/workflows/no-response.yml/badge.svg)](https://github.com/dotnet/docs/actions/workflows/no-response.yml): If an issue is labeled with `needs-more-info` and the op doesn't respond within 14 days, the issue is closed.
46-
- [![OPS status checker](https://github.com/dotnet/docs/actions/workflows/check-for-build-warnings.yml/badge.svg)](https://github.com/dotnet/docs/actions/workflows/check-for-build-warnings.yml): Builds the site for the PR in context, and verifies the build reporting either, `success,` `warnings`, or `error`.
46+
- [![OPS status checker](https://github.com/dotnet/docs/actions/workflows/check-for-build-warnings.yml/badge.svg)](https://github.com/dotnet/docs/actions/workflows/check-for-build-warnings.yml): Builds the site for the PR in context, and verifies the build reporting either, `success`, `warnings`, or `error`.
4747
- [![Snippets 5000](https://github.com/dotnet/docs/actions/workflows/snippets5000.yml/badge.svg)](https://github.com/dotnet/docs/actions/workflows/snippets5000.yml): Custom .NET build validation, locates code impacted by a PR, and builds.
4848
- [![Target supported version](https://github.com/dotnet/docs/actions/workflows/version-sweep.yml/badge.svg)](https://github.com/dotnet/docs/actions/workflows/version-sweep.yml): Runs monthly, creating issues on projects that target .NET versions that are out of support.
4949
- [![Update dependabot.yml](https://github.com/dotnet/docs/actions/workflows/dependabot-bot.yml/badge.svg)](https://github.com/dotnet/docs/actions/workflows/dependabot-bot.yml): Automatically updates the `dependabot` configuration weekly, but only if required.

docs/architecture/cloud-native/combine-containers-serverless-approaches.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,7 @@ When the project is created, it will include a Dockerfile and the worker runtime
3030

3131
## How to combine serverless and Kubernetes with KEDA
3232

33-
In this chapter, you've seen that the Azure Functions' platform automatically scales out to meet demand. When deploying containerized functions to AKS, however, you lose the built-in scaling functionality. To the rescue comes [Kubernetes-based Event Driven (KEDA)](/azure/azure-functions/functions-kubernetes-keda). It enables fine-grained autoscaling for `event-driven Kubernetes workloads,` including containerized functions.
33+
In this chapter, you've seen that the Azure Functions' platform automatically scales out to meet demand. When deploying containerized functions to AKS, however, you lose the built-in scaling functionality. To the rescue comes [Kubernetes-based Event Driven (KEDA)](/azure/azure-functions/functions-kubernetes-keda). It enables fine-grained autoscaling for `event-driven Kubernetes workloads`, including containerized functions.
3434

3535
KEDA provides event-driven scaling functionality to the Functions' runtime in a Docker container. KEDA can scale from zero instances (when no events are occurring) out to `n instances`, based on load. It enables autoscaling by exposing custom metrics to the Kubernetes autoscaler (Horizontal Pod Autoscaler). Using Functions containers with KEDA makes it possible to replicate serverless function capabilities in any Kubernetes cluster.
3636

docs/architecture/maui/dependency-injection.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -55,7 +55,7 @@ There are many dependency injection containers available in .NET; the eShop mult
5555

5656
In .NET MAUI, the `MauiProgram` class will call into the `CreateMauiApp` method to create a `MauiAppBuilder` object. The `MauiAppBuilder` object has a `Services` property of type `IServiceCollection`, which provides a place to register our components, such as views, view models, and services for dependency injection. Any components registered with the `Services` property will be provided to the dependency injection container when the `MauiAppBuilder.Build` method is called.
5757

58-
At runtime, the container must know which implementation of the services are being requested in order to instantiate them for the requested objects. In the eShop multi-platform app, the `IAppEnvironmentService`, `IDialogService` , `INavigationService`, and `ISettingsService` interfaces need to be resolved before it can instantiate a `ProfileViewModel` object. This involves the container performing the following actions:
58+
At runtime, the container must know which implementation of the services are being requested in order to instantiate them for the requested objects. In the eShop multi-platform app, the `IAppEnvironmentService`, `IDialogService`, `INavigationService`, and `ISettingsService` interfaces need to be resolved before it can instantiate a `ProfileViewModel` object. This involves the container performing the following actions:
5959

6060
- Deciding how to instantiate an object that implements the interface. This is known as *registration*.
6161
- Instantiating the object that implements the required interface and the `ProfileViewModel` object. This is known as *resolution*.

0 commit comments

Comments
 (0)