Skip to content

Commit 9797a3e

Browse files
committed
Run final modern settings UI compatibility fixup
1 parent aaf2205 commit 9797a3e

1 file changed

Lines changed: 43 additions & 0 deletions

File tree

Lines changed: 43 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,43 @@
1+
name: Settings UI final fixup
2+
3+
on:
4+
push:
5+
branches:
6+
- agent/settings-refactor-phase1-safety
7+
paths:
8+
- 'scripts/settings_ui_final_fixup.py'
9+
- 'tests/test_modern_settings_preview.py'
10+
- '.github/workflows/settings-ui-final-fixup.yml'
11+
12+
permissions:
13+
contents: write
14+
15+
jobs:
16+
fixup:
17+
runs-on: ubuntu-latest
18+
steps:
19+
- uses: actions/checkout@v4
20+
with:
21+
ref: agent/settings-refactor-phase1-safety
22+
fetch-depth: 1
23+
- uses: actions/setup-python@v5
24+
with:
25+
python-version: '3.11'
26+
- name: Apply compatibility fixup
27+
run: python3 scripts/settings_ui_final_fixup.py
28+
- name: Validate settings UI
29+
run: |
30+
python3 -m unittest tests/test_settings_audit.py tests/test_settings_behavior_migration.py tests/test_modern_settings_preview.py
31+
python3 scripts/settings_audit.py --report settings-audit.json
32+
- name: Commit fixup
33+
shell: bash
34+
run: |
35+
if git diff --quiet -- src/settings.qml; then
36+
echo 'No fixup needed.'
37+
exit 0
38+
fi
39+
git config user.name 'github-actions[bot]'
40+
git config user.email '41898282+github-actions[bot]@users.noreply.github.com'
41+
git add src/settings.qml
42+
git commit -m 'Harden modern settings preview QML compatibility'
43+
git push origin HEAD:agent/settings-refactor-phase1-safety

0 commit comments

Comments
 (0)