Skip to content

Remove completed behavior migration helper #17

Remove completed behavior migration helper

Remove completed behavior migration helper #17

name: Settings refactor migration
on:
push:
branches:
- agent/settings-refactor-phase1-safety
paths:
- 'scripts/phase2_catalog_migration.py'
- 'scripts/phase2_behavior_migration.py'
- 'scripts/phase3_modern_ui_migration.py'
- 'tests/test_settings_behavior_migration.py'
- 'tests/test_modern_settings_preview.py'
- '.github/workflows/settings-refactor-phase2.yml'
workflow_dispatch:
permissions:
contents: write
jobs:
migrate:
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 settings refactor migrations
run: |
python3 scripts/phase2_catalog_migration.py
python3 scripts/phase2_behavior_migration.py
python3 scripts/phase3_modern_ui_migration.py
- name: Validate migrated result
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 migrations
shell: bash
run: |
if git diff --quiet -- src/settings-catalog.json src/settings.qml; then
echo 'Settings refactor migrations are already applied.'
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-catalog.json src/settings.qml
git commit -m 'Apply settings refactor UI migrations'
git push origin HEAD:agent/settings-refactor-phase1-safety