Skip to content

Commit f30ac0f

Browse files
authored
Merge branch 'main' into padmagit77-patch-2
2 parents a4c5c3f + 9a538f1 commit f30ac0f

6 files changed

Lines changed: 126 additions & 9 deletions

File tree

.github/workflow-config.json

Lines changed: 39 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,39 @@
1+
{
2+
"AutoIssueAssign": {
3+
"ExcludedUserList": [
4+
"user1",
5+
"user2"
6+
]
7+
},
8+
"AutoLabelAssign": {
9+
"AutoAssignUsers": 1,
10+
"AutoAssignReviewers": 1,
11+
"ExcludedBranchList": [
12+
"branch1",
13+
"branch2"
14+
],
15+
"AutoLabel": 1,
16+
"ExcludedUserList": [
17+
"user1",
18+
"user2"
19+
]
20+
},
21+
"AutoPublish": {
22+
"EnableAutoMerge": true,
23+
"EnableAutoPublish": true
24+
},
25+
"Stale": {
26+
"RunDebug": false
27+
},
28+
"StaleBranch": {
29+
"RepoBranchSkipList": [
30+
"ExampleBranch1",
31+
"ExampleBranch2"
32+
],
33+
"ReportOnly": false
34+
},
35+
"TierManagement": {
36+
"EnableReadOnlySignoff": 1,
37+
"EnableWriteSignOff": 1
38+
}
39+
}
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/microsoft-365-docs/.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/AutoPublish.yml

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
1+
12
name: (Scheduled) Publish to live
23

34
permissions:
@@ -7,8 +8,8 @@ permissions:
78

89
on:
910
schedule:
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.
11+
- 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.
12+
# - 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.
1213

1314
workflow_dispatch:
1415

@@ -25,4 +26,4 @@ jobs:
2526
secrets:
2627
AccessToken: ${{ secrets.GITHUB_TOKEN }}
2728
PrivateKey: ${{ secrets.M365_APP_PRIVATE_KEY }}
28-
ClientId: ${{ secrets.M365_APP_CLIENT_ID }}
29+
ClientId: ${{ secrets.M365_APP_CLIENT_ID }}

.github/workflows/Stale.yml

Lines changed: 19 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
name: (Scheduled) Mark stale pull requests
22

33
permissions:
4+
contents: read
45
issues: write
56
pull-requests: write
67

@@ -10,11 +11,28 @@ on:
1011
workflow_dispatch:
1112

1213
jobs:
14+
config:
15+
if: github.repository_owner == 'MicrosoftDocs'
16+
runs-on: ubuntu-latest
17+
outputs:
18+
RunDebug: ${{ steps.read.outputs.RunDebug }}
19+
steps:
20+
- uses: actions/checkout@v5
21+
with:
22+
sparse-checkout: .github/workflow-config.json
23+
sparse-checkout-cone-mode: false
24+
- id: read
25+
shell: pwsh
26+
run: |
27+
$Config = (Get-Content '.github/workflow-config.json' | ConvertFrom-Json).Stale
28+
"RunDebug=$("$($Config.RunDebug)".ToLower())" >> $Env:GITHUB_OUTPUT
29+
1330
stale:
1431
if: github.repository_owner == 'MicrosoftDocs'
32+
needs: config
1533
uses: MicrosoftDocs/microsoft-365-docs/.github/workflows/Shared-Stale.yml@workflows-prod
1634
with:
17-
RunDebug: false
35+
RunDebug: ${{ fromJSON(needs.config.outputs.RunDebug) }}
1836
RepoVisibility: ${{ github.repository_visibility }}
1937
secrets:
2038
AccessToken: ${{ secrets.GITHUB_TOKEN }}

.github/workflows/StaleBranch.yml

Lines changed: 21 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -18,15 +18,31 @@ on:
1818

1919
jobs:
2020

21+
config:
22+
if: github.repository_owner == 'MicrosoftDocs'
23+
runs-on: ubuntu-latest
24+
outputs:
25+
RepoBranchSkipList: ${{ steps.read.outputs.RepoBranchSkipList }}
26+
ReportOnly: ${{ steps.read.outputs.ReportOnly }}
27+
steps:
28+
- uses: actions/checkout@v5
29+
with:
30+
sparse-checkout: .github/workflow-config.json
31+
sparse-checkout-cone-mode: false
32+
- id: read
33+
shell: pwsh
34+
run: |
35+
$Config = (Get-Content '.github/workflow-config.json' | ConvertFrom-Json).StaleBranch
36+
"RepoBranchSkipList=$($Config.RepoBranchSkipList | ConvertTo-Json -Compress)" >> $Env:GITHUB_OUTPUT
37+
"ReportOnly=$("$($Config.ReportOnly)".ToLower())" >> $Env:GITHUB_OUTPUT
38+
2139
stale-branch:
2240
if: github.repository_owner == 'MicrosoftDocs'
41+
needs: config
2342
uses: MicrosoftDocs/microsoft-365-docs/.github/workflows/Shared-StaleBranch.yml@workflows-prod
2443
with:
2544
PayloadJson: ${{ toJSON(github) }}
26-
RepoBranchSkipList: '[
27-
"ExampleBranch1",
28-
"ExampleBranch2"
29-
]'
30-
ReportOnly: false
45+
RepoBranchSkipList: ${{ needs.config.outputs.RepoBranchSkipList }}
46+
ReportOnly: ${{ fromJSON(needs.config.outputs.ReportOnly) }}
3147
secrets:
3248
AccessToken: ${{ secrets.GITHUB_TOKEN }}

docset/docfx.json

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -72,6 +72,7 @@
7272
],
7373
"feedback_product_url": "https://support.microsoft.com/windows/send-feedback-to-microsoft-with-the-feedback-hub-app-f59187f8-8739-22d6-ba93-f66612949332",
7474
"feedback_system": "Standard",
75+
"manager": "eliotgra",
7576
"ms.author": "roharwoo",
7677
"ms.devlang": "powershell",
7778
"ms.service": "windows-11",

0 commit comments

Comments
 (0)