Skip to content

Commit 785dee8

Browse files
Merge branch 'dotnet:main' into patch-2
2 parents 49a5d06 + f69b3f0 commit 785dee8

File tree

7,038 files changed

+794206
-460108
lines changed

Some content is hidden

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

7,038 files changed

+794206
-460108
lines changed
Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,13 @@
1+
name: "General feedback"
2+
description: Provide general feedback about the .NET API reference docs or a specific article.
3+
body:
4+
- type: markdown
5+
attributes:
6+
value: Thanks for helping us improve the docs!
7+
- type: textarea
8+
id: description
9+
attributes:
10+
label: Describe the issue or suggestion
11+
description: "Note: If your issue is about a specific article, it's best to submit your feedback by clicking the 'Open a documentation issue' link in the '.NET feedback' box at the end of the article."
12+
validations:
13+
required: true
Lines changed: 59 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,59 @@
1+
name: Learn feedback control.
2+
description: |
3+
⛔ This template is hooked into the feedback control on the bottom of every page on the live site. It automatically fills in several fields for you. Don't use for other purposes. ⛔
4+
body:
5+
- type: markdown
6+
attributes:
7+
value: "## Issue information"
8+
- type: markdown
9+
attributes:
10+
value: Select the issue type, and describe the issue in the text box below. Add as much detail as needed to help us resolve the issue.
11+
- type: dropdown
12+
id: issue-type
13+
attributes:
14+
label: Type of issue
15+
options:
16+
- Typo
17+
- Code doesn't work
18+
- Missing information
19+
- Outdated article
20+
- Thank you
21+
- Other (describe below)
22+
validations:
23+
required: true
24+
- type: textarea
25+
id: feedback
26+
validations:
27+
required: true
28+
attributes:
29+
label: Description
30+
- type: markdown
31+
attributes:
32+
value: "## 🚧 Article information 🚧"
33+
- type: markdown
34+
attributes:
35+
value: "*Don't modify the following fields*. They are automatically filled in for you. Doing so will disconnect your issue from the affected article. *Don't edit them*."
36+
- type: input
37+
id: pageUrl
38+
validations:
39+
required: true
40+
attributes:
41+
label: Page URL
42+
- type: input
43+
id: contentSourceUrl
44+
validations:
45+
required: true
46+
attributes:
47+
label: Content source URL
48+
- type: input
49+
id: documentVersionIndependentId
50+
validations:
51+
required: true
52+
attributes:
53+
label: Document Version Independent Id
54+
- type: input
55+
id: author
56+
validations:
57+
required: true
58+
attributes:
59+
label: Article author

.github/policies/assign-prs.yml

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,8 @@ resource: repository
55
configuration:
66
resourceManagementConfiguration:
77
eventResponderTasks:
8-
- if:
8+
- description: Assign team PRs to author
9+
if:
910
- payloadType: Pull_Request
1011
- isAction:
1112
action: Opened
@@ -15,4 +16,4 @@ configuration:
1516
then:
1617
- assignTo:
1718
author: True
18-
description: Assign team PRs to author
19+

.github/policies/author-action.yml

Lines changed: 21 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -5,15 +5,17 @@ resource: repository
55
configuration:
66
resourceManagementConfiguration:
77
eventResponderTasks:
8-
- if:
8+
- description: Needs-author-action notification
9+
if:
910
- payloadType: Issues
1011
- labelAdded:
1112
label: needs-author-action
1213
then:
1314
- addReply:
14-
reply: This issue has been marked `needs-author-action` and may be missing some important information.
15-
description: Needs-author-action notification
16-
- if:
15+
reply: This issue has been marked `needs-author-action` and might be missing some important information.
16+
17+
- description: PR reviews with "changes requested" applies the needs-author-action label
18+
if:
1719
- payloadType: Pull_Request_Review
1820
- not:
1921
activitySenderHasPermission:
@@ -25,8 +27,9 @@ configuration:
2527
then:
2628
- addLabel:
2729
label: needs-author-action
28-
description: PR reviews with "changes requested" applies the needs-author-action label
29-
- if:
30+
31+
- description: Replace `needs-author-action` label with `needs-further-triage` label when the author comments on an issue that's not "untriaged"
32+
if:
3033
- payloadType: Issue_Comment
3134
- isAction:
3235
action: Created
@@ -43,8 +46,9 @@ configuration:
4346
label: needs-further-triage
4447
- removeLabel:
4548
label: needs-author-action
46-
description: Replace `needs-author-action` label with `needs-further-triage` label when the author comments on an issue that is not still untriaged
47-
- if:
49+
50+
- description: Remove `needs-author-action` label when the author comments on an `untriaged` issue
51+
if:
4852
- payloadType: Issue_Comment
4953
- isAction:
5054
action: Created
@@ -58,8 +62,9 @@ configuration:
5862
then:
5963
- removeLabel:
6064
label: needs-author-action
61-
description: Remove `needs-author-action` label when the author comments on an `untriaged` issue
62-
- if:
65+
66+
- description: Pushing changes to PR branch removes the needs-author-action label
67+
if:
6368
- payloadType: Pull_Request
6469
- isAction:
6570
action: Synchronize
@@ -68,8 +73,9 @@ configuration:
6873
then:
6974
- removeLabel:
7075
label: needs-author-action
71-
description: Pushing changes to PR branch removes the needs-author-action label
72-
- if:
76+
77+
- description: Author commenting in PR removes the needs-author-action label
78+
if:
7379
- payloadType: Issue_Comment
7480
- isActivitySender:
7581
issueAuthor: True
@@ -81,8 +87,9 @@ configuration:
8187
then:
8288
- removeLabel:
8389
label: needs-author-action
84-
description: Author commenting in PR removes the needs-author-action label
85-
- if:
90+
91+
- description: Author responding to a PR review comment removes the needs-author-action label
92+
if:
8693
- payloadType: Pull_Request_Review
8794
- isActivitySender:
8895
issueAuthor: True
@@ -94,4 +101,3 @@ configuration:
94101
then:
95102
- removeLabel:
96103
label: needs-author-action
97-
description: Author responding to a pull request review comment removes the needs-author-action label

.github/policies/auto-merge.yml

Lines changed: 38 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,38 @@
1+
name: GitOps.PullRequestIssueManagement
2+
description: GitOps.PullRequestIssueManagement primitive
3+
resource: repository
4+
5+
configuration:
6+
resourceManagementConfiguration:
7+
eventResponderTasks:
8+
- description: Auto-squash-merge PRs to main labeled with auto-merge
9+
triggerOnOwnActions: true
10+
if:
11+
- payloadType: Pull_Request
12+
- labelAdded:
13+
label: ':octocat: auto-merge'
14+
- targetsBranch:
15+
branch: main
16+
then:
17+
- enableAutoMerge:
18+
mergeMethod: Squash
19+
20+
- description: Auto-merge PRs to live labeled with auto-merge
21+
triggerOnOwnActions: true
22+
if:
23+
- payloadType: Pull_Request
24+
- labelAdded:
25+
label: ':octocat: auto-merge'
26+
- targetsBranch:
27+
branch: live
28+
then:
29+
- enableAutoMerge:
30+
mergeMethod: Merge
31+
32+
- description: Don't auto-merge PRs with auto-merge label removed
33+
if:
34+
- payloadType: Pull_Request
35+
- labelRemoved:
36+
label: ':octocat: auto-merge'
37+
then:
38+
- disableAutoMerge

.github/policies/community-contrib.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,8 @@ resource: repository
55
configuration:
66
resourceManagementConfiguration:
77
eventResponderTasks:
8-
- if:
8+
- description: Label community PRs
9+
if:
910
- payloadType: Pull_Request
1011
- isAction:
1112
action: Opened
@@ -46,4 +47,3 @@ configuration:
4647
then:
4748
- addLabel:
4849
label: community-contribution
49-
description: Label community PRs

.github/policies/label-prs.yml

Lines changed: 23 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,23 @@
1+
name: GitOps.PullRequestIssueManagement
2+
description: GitOps.PullRequestIssueManagement primitive
3+
resource: repository
4+
5+
configuration:
6+
resourceManagementConfiguration:
7+
eventResponderTasks:
8+
- description: Label publish PRs with auto-merge
9+
triggerOnOwnActions: true
10+
if:
11+
- payloadType: Pull_Request
12+
- isAction:
13+
action: Opened
14+
- isActivitySender:
15+
user: dotnet-policy-service[bot]
16+
- titleContains:
17+
pattern: Merge main into live
18+
isRegex: False
19+
then:
20+
- addLabel:
21+
label: ':octocat: auto-merge'
22+
23+

.github/policies/scheduled-pr.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,8 @@ resource: repository
55
configuration:
66
resourceManagementConfiguration:
77
scheduledSearches:
8-
- frequencies:
8+
- description: Push to live branch (publish)
9+
frequencies:
910
- daily:
1011
time: 08:0
1112
filters: []
@@ -15,5 +16,4 @@ configuration:
1516
base: live
1617
title: Merge main into live
1718
body: Please don't squash-merge this PR.
18-
description: Push to live branch (publish)
1919

.github/policies/untriaged-label.yml

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,8 @@ resource: repository
66
configuration:
77
resourceManagementConfiguration:
88
eventResponderTasks:
9-
- if:
9+
- description: Add untriaged label to new/reopened issues without a milestone
10+
if:
1011
- payloadType: Issues
1112
- isOpen
1213
- not:
@@ -22,8 +23,9 @@ configuration:
2223
then:
2324
- addLabel:
2425
label: untriaged
25-
description: Add untriaged label to new/reopened issues without a milestone
26-
- if:
26+
27+
- description: Remove untriaged label from issues when closed or added to a milestone
28+
if:
2729
- payloadType: Issues
2830
- or:
2931
- isAction:
@@ -34,4 +36,3 @@ configuration:
3436
then:
3537
- removeLabel:
3638
label: untriaged
37-
description: Remove untriaged label from issues when closed or added to a milestone

.github/workflows/quest-bulk.yml

Lines changed: 15 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,12 +8,17 @@ on:
88
description: "The reason for running the bulk import workflow"
99
required: true
1010
default: "Initial import into Quest (Azure DevOps)"
11+
duration:
12+
description: "The number of days to import issues for. Defaults to 5 days."
13+
required: false
14+
default: "5"
1115

1216
jobs:
1317
bulk-import:
1418
runs-on: ubuntu-latest
1519
permissions:
1620
issues: write
21+
id-token: write
1722
pull-requests: write
1823
if: ${{ github.repository_owner == 'dotnet' }}
1924

@@ -23,16 +28,25 @@ jobs:
2328
run: |
2429
echo "Reason: ${{ github.event.inputs.reason }}"
2530
31+
- name: Azure OpenID Connect
32+
id: azure-oidc-auth
33+
uses: dotnet/docs-tools/.github/actions/oidc-auth-flow@main
34+
with:
35+
client-id: ${{ secrets.CLIENT_ID }}
36+
tenant-id: ${{ secrets.TENANT_ID }}
37+
audience: ${{ secrets.OSMP_API_AUDIENCE }}
38+
2639
- name: bulk-sequester
2740
id: bulk-sequester
2841
uses: dotnet/docs-tools/actions/sequester@main
2942
env:
3043
ImportOptions__ApiKeys__GitHubToken: ${{ secrets.GITHUB_TOKEN }}
31-
ImportOptions__ApiKeys__OSPOKey: ${{ secrets.OSPO_KEY }}
3244
ImportOptions__ApiKeys__QuestKey: ${{ secrets.QUEST_KEY }}
45+
ImportOptions__ApiKeys__AzureAccessToken: ${{ steps.azure-oidc-auth.outputs.access-token }}
3346
ImportOptions__ApiKeys__SequesterPrivateKey: ${{ secrets.SEQUESTER_PRIVATEKEY }}
3447
ImportOptions__ApiKeys__SequesterAppID: ${{ secrets.SEQUESTER_APPID }}
3548
with:
3649
org: ${{ github.repository_owner }}
3750
repo: ${{ github.repository }}
3851
issue: '-1'
52+
duration: ${{ github.event_name == 'workflow_dispatch' && github.event.inputs.duration || 5 }}

.github/workflows/quest.yml

Lines changed: 11 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -21,6 +21,7 @@ jobs:
2121
runs-on: ubuntu-latest
2222
permissions:
2323
issues: write
24+
id-token: write
2425
pull-requests: write
2526

2627
steps:
@@ -30,14 +31,22 @@ jobs:
3031
echo "Reason: ${{ github.event.inputs.reason }}"
3132
echo "Issue number: ${{ github.event.inputs.issue }}"
3233
34+
- name: Azure OpenID Connect
35+
id: azure-oidc-auth
36+
uses: dotnet/docs-tools/.github/actions/oidc-auth-flow@main
37+
with:
38+
client-id: ${{ secrets.CLIENT_ID }}
39+
tenant-id: ${{ secrets.TENANT_ID }}
40+
audience: ${{ secrets.OSMP_API_AUDIENCE }}
41+
3342
# This step occurs when ran manually, passing the manual issue number input
3443
- name: manual-sequester
3544
if: ${{ github.event_name == 'workflow_dispatch' }}
3645
id: manual-sequester
3746
uses: dotnet/docs-tools/actions/sequester@main
3847
env:
3948
ImportOptions__ApiKeys__GitHubToken: ${{ secrets.GITHUB_TOKEN }}
40-
ImportOptions__ApiKeys__OSPOKey: ${{ secrets.OSPO_KEY }}
49+
ImportOptions__ApiKeys__AzureAccessToken: ${{ steps.azure-oidc-auth.outputs.access-token }}
4150
ImportOptions__ApiKeys__QuestKey: ${{ secrets.QUEST_KEY }}
4251
ImportOptions__ApiKeys__SequesterPrivateKey: ${{ secrets.SEQUESTER_PRIVATEKEY }}
4352
ImportOptions__ApiKeys__SequesterAppID: ${{ secrets.SEQUESTER_APPID }}
@@ -53,12 +62,11 @@ jobs:
5362
uses: dotnet/docs-tools/actions/sequester@main
5463
env:
5564
ImportOptions__ApiKeys__GitHubToken: ${{ secrets.GITHUB_TOKEN }}
56-
ImportOptions__ApiKeys__OSPOKey: ${{ secrets.OSPO_KEY }}
65+
ImportOptions__ApiKeys__AzureAccessToken: ${{ steps.azure-oidc-auth.outputs.access-token }}
5766
ImportOptions__ApiKeys__QuestKey: ${{ secrets.QUEST_KEY }}
5867
ImportOptions__ApiKeys__SequesterPrivateKey: ${{ secrets.SEQUESTER_PRIVATEKEY }}
5968
ImportOptions__ApiKeys__SequesterAppID: ${{ secrets.SEQUESTER_APPID }}
6069
with:
6170
org: ${{ github.repository_owner }}
6271
repo: ${{ github.repository }}
6372
issue: ${{ github.event.issue.number }}
64-

0 commit comments

Comments
 (0)