Skip to content

Trigger final settings UI fixup #2

Trigger final settings UI fixup

Trigger final settings UI fixup #2

name: Settings UI final fixup
on:
push:
branches:
- agent/settings-refactor-phase1-safety
paths:
- 'scripts/settings_ui_final_fixup.py'
- 'tests/test_modern_settings_preview.py'
- '.github/workflows/settings-ui-final-fixup.yml'
permissions:
contents: write
jobs:
fixup:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
with:
ref: agent/settings-refactor-phase1-safety
fetch-depth: 1
- uses: actions/setup-python@v5
with:
python-version: '3.11'
- name: Apply compatibility fixup
run: python3 scripts/settings_ui_final_fixup.py
- name: Validate settings UI
run: |
python3 -m unittest tests/test_settings_audit.py tests/test_settings_behavior_migration.py tests/test_modern_settings_preview.py
python3 scripts/settings_audit.py --report settings-audit.json
- name: Commit fixup
shell: bash
run: |
# This workflow is intentionally temporary and is removed after the fixup lands.
if git diff --quiet -- src/settings.qml; then
echo 'No fixup needed.'
exit 0
fi
git config user.name 'github-actions[bot]'
git config user.email '41898282+github-actions[bot]@users.noreply.github.com'
git add src/settings.qml
git commit -m 'Harden modern settings preview QML compatibility'
git push origin HEAD:agent/settings-refactor-phase1-safety