Skip to content

Commit 051c368

Browse files
authored
Merge branch 'main' into users/iopanag/MRuntime-Docs
2 parents 92d522b + a020233 commit 051c368

6,669 files changed

Lines changed: 221542 additions & 28574 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: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,2 @@
11
{:allowed-branchname-matches ["main"]
2-
:allowed-filename-matches ["support/"]}
2+
:allowed-filename-matches ["Exchange/" "Microsoft365/" "Office/" "Outlook/" "SharePoint/" "SkypeforBusiness/" "Teams/" "Viva/" "support/"]}

.github/workflows/auto_publish.yml

Lines changed: 44 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,44 @@
1+
name: Auto push to live
2+
3+
on:
4+
# schedule:
5+
# Run at 10:00 a.m., 6:00 p.m., and 2:00 a.m. UTC
6+
# - cron: "0 10 * * *"
7+
# - cron: "0 18 * * *"
8+
# - cron: "0 2 * * *"
9+
10+
workflow_dispatch:
11+
12+
jobs:
13+
auto-push-to-live:
14+
runs-on: ubuntu-latest
15+
if: github.repository == 'MicrosoftDocs/SupportArticles-docs-pr'
16+
permissions:
17+
contents: write
18+
pull-requests: write
19+
20+
steps:
21+
# Checkout the automation branch
22+
- name: Checkout automation branch
23+
uses: actions/checkout@v3
24+
with:
25+
ref: automation # Explicitly check out the automation branch
26+
27+
# Set up Python
28+
- name: Set up Python
29+
uses: actions/setup-python@v4
30+
with:
31+
python-version: '3.12'
32+
33+
# Install dependencies (if any)
34+
- name: Install dependencies
35+
run: |
36+
python -m pip install PyGithub
37+
38+
# Run the Python script
39+
- name: Run script
40+
env:
41+
GITHUB_ACCESS_TOKEN: ${{ secrets.DELAND_PAT }}
42+
run: |
43+
ls scripts
44+
python scripts/auto_push2live.py
Lines changed: 36 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,36 @@
1+
name: Create Azure DevOps CI on PR
2+
3+
on:
4+
pull_request:
5+
types: [opened]
6+
7+
jobs:
8+
create-work-item:
9+
runs-on: ubuntu-latest
10+
steps:
11+
- name: Create Azure DevOps Task
12+
env:
13+
ADO_ORG_URL: https://dev.azure.com/KMOps
14+
ADO_PROJECT: ContentExperience
15+
ADO_PAT: ${{ secrets.ADO_PAT }}
16+
run: |
17+
PR_TITLE="${{ github.event.pull_request.title }}"
18+
PR_BODY="${{ github.event.pull_request.body }}"
19+
PR_URL="${{ github.event.pull_request.html_url }}"
20+
21+
curl -X POST \
22+
-H "Content-Type: application/json-patch+json" \
23+
-H "Authorization: Basic $(echo -n ":$ADO_PAT" | base64)" \
24+
$ADO_ORG_URL/$ADO_PROJECT/_apis/wit/workitems/$ExternalCI?api-version=6.0 \
25+
-d '[
26+
{
27+
"op": "add",
28+
"path": "/fields/System.Title",
29+
"value": "PR Opened: '"$PR_TITLE"'"
30+
},
31+
{
32+
"op": "add",
33+
"path": "/fields/System.Description",
34+
"value": "Pull Request URL: '"$PR_URL"'\n\n'"$PR_BODY"'"
35+
}
36+
]'
Lines changed: 25 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,25 @@
1+
name: Manage stale branches
2+
3+
permissions:
4+
contents: write
5+
pull-requests: read
6+
7+
on:
8+
schedule:
9+
- cron: "0 9 1,28 * *"
10+
workflow_dispatch:
11+
12+
13+
jobs:
14+
15+
stale-branch:
16+
if: github.repository == 'MicrosoftDocs/SupportArticles-docs-pr'
17+
uses: MicrosoftDocs/microsoft-365-docs/.github/workflows/Shared-StaleBranch.yml@workflows-prod
18+
with:
19+
PayloadJson: ${{ toJSON(github) }}
20+
RepoBranchSkipList: '[
21+
"automation"
22+
]'
23+
ReportOnly: false
24+
secrets:
25+
AccessToken: ${{ secrets.GITHUB_TOKEN }}
Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,16 @@
1+
name: Validate branch names
2+
3+
on:
4+
create
5+
6+
jobs:
7+
validate-branch-name:
8+
if: github.repository == 'MicrosoftDocs/SupportArticles-docs-pr' && startsWith(github.ref, 'refs/heads/')
9+
runs-on: windows-latest
10+
strategy:
11+
fail-fast: true # Prevent retries on failure
12+
steps:
13+
- name: Set git to use long paths
14+
run: git config --system core.longpaths true
15+
- name: Try checkout
16+
uses: actions/checkout@v3

.openpublishing.publish.config.json

Lines changed: 130 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -17,18 +17,133 @@
1717
"Conceptual": "Content"
1818
},
1919
"template_folder": "_themes"
20+
},
21+
{
22+
"docset_name": "SupportArticles-Exchange",
23+
"build_source_folder": "Exchange",
24+
"build_output_subfolder": "SupportArticles-Exchange",
25+
"locale": "en-us",
26+
"monikers": [],
27+
"open_to_public_contributors": true,
28+
"type_mapping": {
29+
"Conceptual": "Content",
30+
"ManagedReference": "Content",
31+
"RestApi": "Content"
32+
},
33+
"build_entry_point": "docs",
34+
"template_folder": "_themes"
35+
},
36+
{
37+
"docset_name": "SupportArticles-M365",
38+
"build_source_folder": "Microsoft365",
39+
"build_output_subfolder": "SupportArticles-M365",
40+
"locale": "en-us",
41+
"monikers": [],
42+
"open_to_public_contributors": true,
43+
"type_mapping": {
44+
"Conceptual": "Content",
45+
"ManagedReference": "Content",
46+
"RestApi": "Content"
47+
},
48+
"build_entry_point": "docs",
49+
"template_folder": "_themes"
50+
},
51+
{
52+
"docset_name": "SupportArticles-Office",
53+
"build_source_folder": "Office",
54+
"build_output_subfolder": "SupportArticles-Office",
55+
"locale": "en-us",
56+
"monikers": [],
57+
"open_to_public_contributors": true,
58+
"type_mapping": {
59+
"Conceptual": "Content",
60+
"ManagedReference": "Content",
61+
"RestApi": "Content"
62+
},
63+
"build_entry_point": "docs",
64+
"template_folder": "_themes"
65+
},
66+
{
67+
"docset_name": "SupportArticles-Outlook",
68+
"build_source_folder": "Outlook",
69+
"build_output_subfolder": "SupportArticles-Outlook",
70+
"locale": "en-us",
71+
"monikers": [],
72+
"open_to_public_contributors": true,
73+
"type_mapping": {
74+
"Conceptual": "Content"
75+
},
76+
"build_entry_point": "docs",
77+
"template_folder": "_themes"
78+
},
79+
{
80+
"docset_name": "SupportArticles-SharePoint",
81+
"build_source_folder": "SharePoint",
82+
"build_output_subfolder": "SupportArticles-SharePoint",
83+
"locale": "en-us",
84+
"monikers": [],
85+
"open_to_public_contributors": true,
86+
"type_mapping": {
87+
"Conceptual": "Content"
88+
},
89+
"build_entry_point": "docs"
90+
},
91+
{
92+
"docset_name": "SupportArticles-SkypeForBusiness",
93+
"build_source_folder": "SkypeForBusiness",
94+
"build_output_subfolder": "SupportArticles-SkypeForBusiness",
95+
"locale": "en-us",
96+
"monikers": [],
97+
"open_to_public_contributors": true,
98+
"type_mapping": {
99+
"Conceptual": "Content",
100+
"ManagedReference": "Content",
101+
"RestApi": "Content"
102+
},
103+
"build_entry_point": "docs",
104+
"template_folder": "_themes"
105+
},
106+
{
107+
"docset_name": "SupportArticles-Teams",
108+
"build_source_folder": "Teams",
109+
"build_output_subfolder": "SupportArticles-Teams",
110+
"locale": "en-us",
111+
"monikers": [],
112+
"open_to_public_contributors": true,
113+
"type_mapping": {
114+
"Conceptual": "Content",
115+
"ManagedReference": "Content",
116+
"RestApi": "Content"
117+
},
118+
"build_entry_point": "docs",
119+
"template_folder": "_themes"
120+
},
121+
{
122+
"docset_name": "SupportArticles-Viva",
123+
"build_source_folder": "Viva",
124+
"build_output_subfolder": "SupportArticles-Viva",
125+
"locale": "en-us",
126+
"monikers": [],
127+
"open_to_public_contributors": true,
128+
"type_mapping": {
129+
"Conceptual": "Content"
130+
},
131+
"build_entry_point": "docs"
20132
}
21133
],
22134
"notification_subscribers": [
23-
"luche@microsoft.com",
24-
"haiyingyu@microsoft.com",
25-
"delhan@microsoft.com",
26-
"Lin.Gen@microsoft.com"
135+
"meerak@microsoft.com",
136+
"aartigoyle@microsoft.com",
137+
"kaushika@microsoft.com",
138+
"jarrettr@microsoft.com"
27139
],
28140
"sync_notification_subscribers": [
29-
30-
31-
141+
142+
143+
144+
145+
146+
32147
],
33148
"branches_to_filter": [],
34149
"git_repository_url_open_to_public_contributors": "https://github.com/MicrosoftDocs/SupportArticles-docs",
@@ -78,6 +193,14 @@
78193
"redirection_files": [
79194
".openpublishing.redirection.json",
80195
".openpublishing.redirection.developer.json",
196+
".openpublishing.redirection.exchange.json",
197+
".openpublishing.redirection.microsoft365.json",
198+
".openpublishing.redirection.office.json",
199+
".openpublishing.redirection.outlook.json",
200+
".openpublishing.redirection.SharePoint.json",
201+
".openpublishing.redirection.skypeforbusiness.json",
202+
".openpublishing.redirection.teams.json",
203+
".openpublishing.redirection.viva.json",
81204
"support/azure/.openpublishing.redirection.azure.json",
82205
"support/system-center/.openpublishing.redirection.systemcenter.json"
83206
],

0 commit comments

Comments
 (0)