Skip to content

Commit dcb3ebc

Browse files
Merge branch 'main' into Win11ISO
2 parents 9b1023c + 52afab2 commit dcb3ebc

File tree

33 files changed

+221
-380
lines changed

33 files changed

+221
-380
lines changed

.github/workflows/auto-merge-docs.yaml

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ on:
88

99
jobs:
1010
auto-merge:
11-
if: github.event.pull_request.head.ref == 'docs-update' && github.event.pull_request.user.login == 'github-actions[bot]'
11+
if: github.event.pull_request.head.ref == 'docs-update' && (github.event.pull_request.user.login == 'ChrisTitusTech' || github.event.pull_request.user.login == 'github-actions[bot]')
1212
runs-on: ubuntu-latest
1313
permissions:
1414
pull-requests: write
@@ -18,13 +18,14 @@ jobs:
1818
uses: actions/checkout@v6
1919

2020
- name: Auto-approve PR
21+
if: github.event.pull_request.user.login == 'github-actions[bot]'
2122
run: gh pr review "$PR_NUMBER" --approve
2223
env:
2324
PR_NUMBER: ${{ github.event.pull_request.number }}
2425
GH_TOKEN: ${{ secrets.AUTO_MERGE }}
2526

2627
- name: Enable auto-merge
27-
run: gh pr merge "$PR_NUMBER" --squash --auto --delete-branch
28+
run: gh pr merge "$PR_NUMBER" --squash --delete-branch --admin
2829
env:
2930
PR_NUMBER: ${{ github.event.pull_request.number }}
30-
GH_TOKEN: ${{ secrets.GITHUB_TOKEN }}
31+
GH_TOKEN: ${{ secrets.AUTO_MERGE }}

.github/workflows/docs.yaml

Lines changed: 10 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ on:
1212
workflow_dispatch:
1313

1414
permissions:
15-
contents: write
15+
contents: read
1616
pages: write
1717
id-token: write
1818
pull-requests: write
@@ -47,22 +47,27 @@ jobs:
4747
- name: Setup Pages
4848
id: pages
4949
uses: actions/configure-pages@v5
50+
5051
- name: Generate Dev Docs from JSON
5152
shell: pwsh
5253
run: |
5354
Set-Location tools
5455
./devdocs-generator.ps1
5556
56-
- name: Create Pull Request 🚀
57+
- name: Create Pull Request
5758
id: cpr
58-
uses: peter-evans/create-pull-request@v6
59+
uses: peter-evans/create-pull-request@v8
5960
with:
60-
token: ${{ secrets.GITHUB_TOKEN }}
61-
commit-message: 'Update generated documentation'
61+
token: ${{ secrets.AUTO_MERGE }}
62+
commit-message: 'chore: Update generated dev docs'
6263
title: 'chore: Update Generated Dev Docs'
6364
body: 'Automated update of generated documentation from JSON sources'
6465
branch: docs-update
6566
delete-branch: true
67+
add-paths: |
68+
docs/content/dev/
69+
config/tweaks.json
70+
config/feature.json
6671
labels: |
6772
automated
6873
documentation

.github/workflows/pre-release.yaml

Lines changed: 24 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,7 @@ name: Pre-Release WinUtil
33
permissions:
44
contents: write
55
actions: read
6+
pull-requests: write
67

78
on:
89
workflow_dispatch: # Manual trigger added
@@ -22,25 +23,35 @@ jobs:
2223
Set-Location tools
2324
./devdocs-generator.ps1
2425
25-
- name: Commit Updated JSON Links
26-
shell: pwsh
27-
run: |
28-
git config user.name "github-actions[bot]"
29-
git config user.email "github-actions[bot]@users.noreply.github.com"
30-
git add config/tweaks.json config/feature.json
31-
$changes = git diff --cached --quiet; if ($LASTEXITCODE -ne 0) {
32-
git commit -m "Update documentation links in JSON configs"
33-
git push
34-
} else {
35-
Write-Host "No JSON link changes to commit"
36-
}
37-
3826
- name: Compile project
3927
shell: pwsh
4028
run: |
4129
Set-ExecutionPolicy Bypass -Scope Process -Force; ./Compile.ps1
4230
continue-on-error: false # Directly fail the job on error, removing the need for a separate check
4331

32+
- name: Create Pull Request for Updated JSON Links
33+
id: cpr
34+
uses: peter-evans/create-pull-request@v8
35+
with:
36+
token: ${{ secrets.AUTO_MERGE }}
37+
commit-message: 'chore: Update documentation links in JSON configs'
38+
title: 'chore: Update Generated Dev Docs'
39+
body: 'Automated update of documentation links in JSON configs from pre-release build'
40+
branch: docs-update
41+
delete-branch: true
42+
add-paths: |
43+
config/tweaks.json
44+
config/feature.json
45+
labels: |
46+
automated
47+
documentation
48+
49+
- name: Check outputs
50+
shell: bash
51+
run: |
52+
echo "Pull Request Number - ${{ steps.cpr.outputs.pull-request-number }}"
53+
echo "Pull Request URL - ${{ steps.cpr.outputs.pull-request-url }}"
54+
4455
- name: Set Version to Todays Date
4556
id: extract_version
4657
run: |

.github/workflows/sponsors.yaml

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

2525
- name: Create Pull Request 🚀
2626
id: cpr
27-
uses: peter-evans/create-pull-request@v6
27+
uses: peter-evans/create-pull-request@v8
2828
with:
2929
token: ${{ secrets.GITHUB_TOKEN }}
3030
commit-message: 'Update sponsors in README'

config/preset.json

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,6 @@
1616
],
1717
"Minimal": [
1818
"WPFTweaksConsumerFeatures",
19-
"WPFTweaksDisableExplorerAutoDiscovery",
2019
"WPFTweaksWPBT",
2120
"WPFTweaksServices",
2221
"WPFTweaksTelemetry"

config/tweaks.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2615,7 +2615,7 @@
26152615
},
26162616
"WPFTweaksDisableExplorerAutoDiscovery": {
26172617
"Content": "Disable Explorer Automatic Folder Discovery",
2618-
"Description": "Windows Explorer automatically tries to guess the type of the folder based on its contents, slowing down the browsing experience.",
2618+
"Description": "Windows Explorer automatically tries to guess the type of the folder based on its contents, slowing down the browsing experience. WARNING! Will disable file explorer grouping",
26192619
"category": "Essential Tweaks",
26202620
"panel": "1",
26212621
"InvokeScript": [

docs/content/dev/features/Features/DisableLegacyRecovery.md

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,13 +3,12 @@ title: "Disable Legacy F8 Boot Recovery"
33
description: ""
44
---
55

6-
```json {filename="config/feature.json",linenos=inline,linenostart=107}
6+
```json {filename="config/feature.json",linenos=inline,linenostart=100}
77
"WPFFeatureDisableLegacyRecovery": {
88
"Content": "Disable Legacy F8 Boot Recovery",
99
"Description": "Disables Advanced Boot Options screen that lets you start Windows in advanced troubleshooting modes.",
1010
"category": "Features",
1111
"panel": "1",
12-
"Order": "a019_",
1312
"feature": [],
1413
"InvokeScript": [
1514
"bcdedit /set bootmenupolicy standard"

docs/content/dev/features/Features/EnableLegacyRecovery.md

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,13 +3,12 @@ title: "Enable Legacy F8 Boot Recovery"
33
description: ""
44
---
55

6-
```json {filename="config/feature.json",linenos=inline,linenostart=95}
6+
```json {filename="config/feature.json",linenos=inline,linenostart=89}
77
"WPFFeatureEnableLegacyRecovery": {
88
"Content": "Enable Legacy F8 Boot Recovery",
99
"Description": "Enables Advanced Boot Options screen that lets you start Windows in advanced troubleshooting modes.",
1010
"category": "Features",
1111
"panel": "1",
12-
"Order": "a018_",
1312
"feature": [],
1413
"InvokeScript": [
1514
"bcdedit /set bootmenupolicy legacy"

docs/content/dev/features/Features/RegBackup.md

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,13 +3,12 @@ title: "Enable Daily Registry Backup Task 12.30am"
33
description: ""
44
---
55

6-
```json {filename="config/feature.json",linenos=inline,linenostart=77}
6+
```json {filename="config/feature.json",linenos=inline,linenostart=72}
77
"WPFFeatureRegBackup": {
88
"Content": "Enable Daily Registry Backup Task 12.30am",
99
"Description": "Enables daily registry backup, previously disabled by Microsoft in Windows 10 1803.",
1010
"category": "Features",
1111
"panel": "1",
12-
"Order": "a017_",
1312
"feature": [],
1413
"InvokeScript": [
1514
"

docs/content/dev/features/Features/Sandbox.md

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,13 +3,12 @@ title: "Windows Sandbox"
33
description: ""
44
---
55

6-
```json {filename="config/feature.json",linenos=inline,linenostart=119}
6+
```json {filename="config/feature.json",linenos=inline,linenostart=111}
77
"WPFFeaturesSandbox": {
88
"Content": "Windows Sandbox",
99
"Description": "Windows Sandbox is a lightweight virtual machine that provides a temporary desktop environment to safely run applications and programs in isolation.",
1010
"category": "Features",
1111
"panel": "1",
12-
"Order": "a021_",
1312
"feature": [
1413
"Containers-DisposableClientVM"
1514
],

0 commit comments

Comments
 (0)