Skip to content

Commit 1bb3e4e

Browse files
committed
Merge branch 'public' into workflows-test
2 parents 04676a9 + c3301fa commit 1bb3e4e

3,519 files changed

Lines changed: 90342 additions & 189960 deletions

File tree

Some content is hidden

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

.acrolinx-config.edn

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -35,7 +35,7 @@ If you need a scoring exception for content in this PR, add the *Sign off* and t
3535
- Escalate the exception request to the Acrolinx Review Team for review.
3636
- Approve the exception and work with the GitHub Admin Team to merge the PR to the default branch.
3737
38-
For more information about the exception criteria and exception process, see [Minimum Acrolinx topic scores for publishing](https://review.docs.microsoft.com/en-us/office-authoring-guide/acrolinx-min-score?branch=main).
38+
For more information about the exception criteria and exception process, see [Minimum Acrolinx topic scores for publishing](https://review.learn.microsoft.com/en-us/office-authoring-guide/acrolinx-min-score?branch=main).
3939
4040
Select the total score link to review all feedback on clarity, consistency, tone, brand, terms, spelling, grammar, readability, and inclusive language. _You should fix all spelling errors regardless of your total score_. Fixing spelling errors helps maintain customer trust in overall content quality.
4141
@@ -51,10 +51,10 @@ Select the total score link to review all feedback on clarity, consistency, tone
5151
"
5252
**More information about Acrolinx**
5353
54-
- [Install Acrolinx locally for VSCode for Magic](https://review.docs.microsoft.com/office-authoring-guide/acrolinx-vscode?branch=main)
54+
- [Install Acrolinx locally for VSCode for Magic](https://review.learn.microsoft.com/en-us/office-authoring-guide/acrolinx-vscode?branch=main)
5555
- [False positives or issues](https://aka.ms/acrolinxbug)
5656
- [Request a new Acrolinx term](https://microsoft.sharepoint.com/teams/M365Dev2/SitePages/M365-terminology.aspx)
57-
- [Troubleshooting issues with Acrolinx](https://review.docs.microsoft.com/help/contribute/acrolinx-error-messages)
57+
- [Troubleshooting issues with Acrolinx](https://review.learn.microsoft.com/en-us/help/platform/acrolinx-troubleshoot?branch=main)
5858
5959
"
6060
}

.github/copilot-instructions.md

Lines changed: 55 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,55 @@
1+
# Copilot Instructions for Microsoft Learn
2+
3+
These instructions define a unified style and process standard for authoring and maintaining learn.microsoft.com documentation with GitHub Copilot or other AI assistance.
4+
5+
## Learn-wide Instructions
6+
7+
Below are instructions that apply to all Microsoft Learn documentation authored with AI assistance. Learn product team will update this periodically as needed. Each repository SHOULD NOT update this to avoid being overwritten, but update the repository-specific instructions below as needed.
8+
9+
### AI Usage & Disclosure
10+
All Markdown content created or substantially modified with AI assistance must include an `ai-usage` front matter entry:
11+
- `ai-usage: ai-generated` – AI produced the initial draft with minimal human authorship
12+
- `ai-usage: ai-assisted` – Human-directed, reviewed, and edited with AI support
13+
- Omit only for purely human-authored legacy content
14+
15+
If missing, **add it**. However, do not add or update the ai-usage tag if the changes proposed are confined solely to:
16+
- Links (link text and/or URLs)
17+
- Single words or short phrases, such as entries in table cells
18+
- Less than 5% of the article's word count
19+
20+
### Writing Style
21+
22+
Follow [Microsoft Writing Style Guide](https://learn.microsoft.com/style-guide/welcome/) with these specifics:
23+
24+
#### Voice and Tone
25+
26+
- Active voice, second person addressing reader directly
27+
- Conversational tone with contractions
28+
- Present tense for instructions/descriptions
29+
- Imperative mood for instructions ("Call the method" not "You should call the method")
30+
- Use "might" instead of "may" for possibility
31+
- Avoid "we"/"our" referring to documentation authors
32+
33+
#### Structure and Format
34+
35+
- Sentence case headings (no gerunds in titles)
36+
- Be concise, break up long sentences
37+
- Oxford comma in lists
38+
- Number all ordered list items as "1." (not sequential numbering like "1.", "2.", "3.", etc.)
39+
- Complete sentences with proper punctuation in all list items
40+
- Avoid "etc." or "and so on" - provide complete lists or use "for example"
41+
- No consecutive headings without content between them
42+
43+
#### Formatting Conventions
44+
45+
- **Bold** for UI elements
46+
- `Code style` for file names, folders, custom types, non-localizable text
47+
- Raw URLs in angle brackets
48+
- Use relative links for files in this repo
49+
- Remove `https://learn.microsoft.com/en-us` from learn.microsoft.com links
50+
51+
## Repository-Specific Instructions
52+
53+
Below are instructions specific to this repository. These may be updated by repository maintainers as needed.
54+
55+
<!--- Add additional repository level instructions below. Do NOT update this line or above. --->

.github/workflow-config.json

Lines changed: 27 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,27 @@
1+
{
2+
"AutoIssueAssign": {
3+
"ExcludedUserList": ["user1", "user2"]
4+
},
5+
"AutoLabelAssign": {
6+
"AutoAssignUsers": 1,
7+
"AutoAssignReviewers": 1,
8+
"AutoLabel": 1,
9+
"ExcludedUserList": ["user1", "user2"],
10+
"ExcludedBranchList": ["branch1", "branch2"]
11+
},
12+
"AutoPublish": {
13+
"EnableAutoPublish": true,
14+
"EnableAutoMerge": true
15+
},
16+
"Stale": {
17+
"RunDebug": false
18+
},
19+
"StaleBranch": {
20+
"RepoBranchSkipList": ["ExampleBranch1", "ExampleBranch2"],
21+
"ReportOnly": false
22+
},
23+
"TierManagement": {
24+
"EnableWriteSignOff": 1,
25+
"EnableReadOnlySignoff": 1
26+
}
27+
}
Lines changed: 42 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,42 @@
1+
name: (Scheduled) Auto issue assign
2+
3+
permissions:
4+
contents: read
5+
issues: write
6+
7+
on:
8+
schedule:
9+
- cron: "26 21 * * *"
10+
11+
workflow_dispatch:
12+
13+
14+
jobs:
15+
16+
config:
17+
if: github.repository_owner == 'MicrosoftDocs'
18+
runs-on: ubuntu-latest
19+
outputs:
20+
ExcludedUserList: ${{ steps.read.outputs.ExcludedUserList }}
21+
steps:
22+
- uses: actions/checkout@v5
23+
with:
24+
sparse-checkout: .github/workflow-config.json
25+
sparse-checkout-cone-mode: false
26+
- id: read
27+
shell: pwsh
28+
run: |
29+
$Config = (Get-Content '.github/workflow-config.json' | ConvertFrom-Json).AutoIssueAssign
30+
"ExcludedUserList=$($Config.ExcludedUserList | ConvertTo-Json -Compress)" >> $Env:GITHUB_OUTPUT
31+
32+
stale-branch:
33+
if: github.repository_owner == 'MicrosoftDocs'
34+
needs: config
35+
uses: MicrosoftDocs/tcp-workflows/.github/workflows/Shared-AutoIssueAssign.yml@workflows-prod
36+
with:
37+
PayloadJson: ${{ toJSON(github) }}
38+
ExcludedUserList: ${{ needs.config.outputs.ExcludedUserList }}
39+
secrets:
40+
AccessToken: ${{ secrets.GITHUB_TOKEN }}
41+
PrivateKey: ${{ secrets.M365_APP_PRIVATE_KEY }}
42+
ClientId: ${{ secrets.M365_APP_CLIENT_ID }}

.github/workflows/AutoLabelAssign.yml

Lines changed: 37 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -12,10 +12,34 @@ on:
1212
- completed
1313

1414
jobs:
15+
config:
16+
if: github.repository_owner == 'MicrosoftDocs'
17+
runs-on: ubuntu-latest
18+
outputs:
19+
AutoAssignUsers: ${{ steps.read.outputs.AutoAssignUsers }}
20+
AutoAssignReviewers: ${{ steps.read.outputs.AutoAssignReviewers }}
21+
AutoLabel: ${{ steps.read.outputs.AutoLabel }}
22+
ExcludedUserList: ${{ steps.read.outputs.ExcludedUserList }}
23+
ExcludedBranchList: ${{ steps.read.outputs.ExcludedBranchList }}
24+
steps:
25+
- uses: actions/checkout@v5
26+
with:
27+
sparse-checkout: .github/workflow-config.json
28+
sparse-checkout-cone-mode: false
29+
- id: read
30+
shell: pwsh
31+
run: |
32+
$Config = (Get-Content '.github/workflow-config.json' | ConvertFrom-Json).AutoLabelAssign
33+
"AutoAssignUsers=$($Config.AutoAssignUsers)" >> $Env:GITHUB_OUTPUT
34+
"AutoAssignReviewers=$($Config.AutoAssignReviewers)" >> $Env:GITHUB_OUTPUT
35+
"AutoLabel=$($Config.AutoLabel)" >> $Env:GITHUB_OUTPUT
36+
"ExcludedUserList=$($Config.ExcludedUserList | ConvertTo-Json -Compress)" >> $Env:GITHUB_OUTPUT
37+
"ExcludedBranchList=$($Config.ExcludedBranchList | ConvertTo-Json -Compress)" >> $Env:GITHUB_OUTPUT
38+
1539
download-payload:
1640
name: Download and extract payload artifact
1741
if: github.repository_owner == 'MicrosoftDocs'
18-
uses: MicrosoftDocs/microsoft-365-docs/.github/workflows/Shared-ExtractPayload.yml@workflows-prod
42+
uses: MicrosoftDocs/tcp-workflows/.github/workflows/Shared-ExtractPayload.yml@workflows-prod
1943
with:
2044
WorkflowId: ${{ github.event.workflow_run.id }}
2145
OrgRepo: ${{ github.repository }}
@@ -25,13 +49,18 @@ jobs:
2549
label-assign:
2650
name: Run assign and label
2751
if: github.repository_owner == 'MicrosoftDocs'
28-
needs: [download-payload]
29-
uses: MicrosoftDocs/microsoft-365-docs/.github/workflows/Shared-AutoLabelAssign.yml@workflows-prod
52+
needs: [config, download-payload]
53+
uses: MicrosoftDocs/tcp-workflows/.github/workflows/Shared-AutoLabelAssign.yml@workflows-prod
3054
with:
3155
PayloadJson: ${{ needs.download-payload.outputs.WorkflowPayload }}
32-
AutoAssignUsers: 1
33-
AutoLabel: 1
34-
ExcludedUserList: '["user1", "user2"]'
35-
ExcludedBranchList: '["branch1", "branch2"]'
56+
AutoAssignUsers: ${{ fromJSON(needs.config.outputs.AutoAssignUsers) }}
57+
AutoAssignReviewers: ${{ fromJSON(needs.config.outputs.AutoAssignReviewers) }}
58+
AutoLabel: ${{ fromJSON(needs.config.outputs.AutoLabel) }}
59+
ExcludedUserList: ${{ needs.config.outputs.ExcludedUserList }}
60+
ExcludedBranchList: ${{ needs.config.outputs.ExcludedBranchList }}
3661
secrets:
37-
AccessToken: ${{ secrets.GITHUB_TOKEN }}
62+
AccessToken: ${{ secrets.GITHUB_TOKEN }}
63+
PrivateKey: ${{ secrets.M365_APP_PRIVATE_KEY }}
64+
ClientId: ${{ secrets.M365_APP_CLIENT_ID }}
65+
66+

.github/workflows/AutoLabelMsftContributor.yml

Lines changed: 0 additions & 35 deletions
This file was deleted.

.github/workflows/AutoPublish.yml

Lines changed: 26 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -3,23 +3,44 @@ name: (Scheduled) Publish to live
33
permissions:
44
contents: write
55
pull-requests: write
6+
checks: read
67

78
on:
89
schedule:
9-
- cron: "25 5,11,17,22 * * *" # Times are UTC based on Daylight Saving Time. Need to be adjusted for Standard Time. Scheduling at :25 to account for queuing lag.
10+
- cron: "25 2,5,8,11,14,17,20,22 * * *" # Times are UTC based on Daylight Saving Time (~Mar-Nov). Scheduling at :25 to account for queuing lag.
11+
# - cron: "25 3,6,9,12,15,18,21,23 * * *" # Times are UTC based on Standard Time (~Nov-Mar). Scheduling at :25 to account for queuing lag.
1012

1113
workflow_dispatch:
1214

1315
jobs:
1416

17+
config:
18+
if: github.repository_owner == 'MicrosoftDocs' && contains(github.event.repository.topics, 'build')
19+
runs-on: ubuntu-latest
20+
outputs:
21+
EnableAutoPublish: ${{ steps.read.outputs.EnableAutoPublish }}
22+
EnableAutoMerge: ${{ steps.read.outputs.EnableAutoMerge }}
23+
steps:
24+
- uses: actions/checkout@v5
25+
with:
26+
sparse-checkout: .github/workflow-config.json
27+
sparse-checkout-cone-mode: false
28+
- id: read
29+
shell: pwsh
30+
run: |
31+
$Config = (Get-Content '.github/workflow-config.json' | ConvertFrom-Json).AutoPublish
32+
"EnableAutoPublish=$("$($Config.EnableAutoPublish)".ToLower())" >> $Env:GITHUB_OUTPUT
33+
"EnableAutoMerge=$("$($Config.EnableAutoMerge)".ToLower())" >> $Env:GITHUB_OUTPUT
34+
1535
auto-publish:
1636
if: github.repository_owner == 'MicrosoftDocs' && contains(github.event.repository.topics, 'build')
17-
uses: MicrosoftDocs/microsoft-365-docs/.github/workflows/Shared-AutoPublish.yml@workflows-prod
37+
needs: config
38+
uses: MicrosoftDocs/tcp-workflows/.github/workflows/Shared-AutoPublishV2.yml@workflows-prod
1839
with:
1940
PayloadJson: ${{ toJSON(github) }}
20-
EnableAutoPublish: true
21-
41+
EnableAutoPublish: ${{ fromJSON(needs.config.outputs.EnableAutoPublish) }}
42+
EnableAutoMerge: ${{ fromJSON(needs.config.outputs.EnableAutoMerge) }}
2243
secrets:
2344
AccessToken: ${{ secrets.GITHUB_TOKEN }}
2445
PrivateKey: ${{ secrets.M365_APP_PRIVATE_KEY }}
25-
ClientId: ${{ secrets.M365_APP_CLIENT_ID }}
46+
ClientId: ${{ secrets.M365_APP_CLIENT_ID }}

.github/workflows/BackgroundTasks.yml

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,7 @@ permissions:
66

77
on:
88
pull_request_target:
9+
types: [opened, synchronize, reopened, ready_for_review]
910

1011
jobs:
1112
upload:
@@ -21,7 +22,7 @@ jobs:
2122
mkdir -p ./pr
2223
echo $PayloadJson > ./pr/PayloadJson.json
2324
sed -i -e "s/$AccessToken/XYZ/g" ./pr/PayloadJson.json
24-
- uses: actions/upload-artifact@v4
25+
- uses: actions/upload-artifact@v6
2526
with:
2627
name: PayloadJson
2728
path: pr/

.github/workflows/BuildValidation.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ jobs:
1212

1313
build-status:
1414
if: github.repository_owner == 'MicrosoftDocs'
15-
uses: MicrosoftDocs/microsoft-365-docs/.github/workflows/Shared-BuildValidation.yml@workflows-prod
15+
uses: MicrosoftDocs/tcp-workflows/.github/workflows/Shared-BuildValidation.yml@workflows-prod
1616
with:
1717
PayloadJson: ${{ toJSON(github) }}
1818
secrets:

.github/workflows/LiveMergeCheck.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ jobs:
1313

1414
live-merge:
1515
if: github.repository_owner == 'MicrosoftDocs'
16-
uses: MicrosoftDocs/microsoft-365-docs/.github/workflows/Shared-LiveMergeCheck.yml@workflows-prod
16+
uses: MicrosoftDocs/tcp-workflows/.github/workflows/Shared-LiveMergeCheck.yml@workflows-prod
1717
with:
1818
PayloadJson: ${{ toJSON(github) }}
1919
secrets:

0 commit comments

Comments
 (0)