Inserts improved prompt for migration
qt-migration-copilot-demo/pipeline/head There was a failure building this commit

This commit is contained in:
torsten committed 2026-08-12 17:46:31 +02:00
1 parent a0aed4d03d
commit b36a8b6a32
3 files changed
+154 -56

No files matched your search

+1 -28
View File
@@ -47,34 +47,7 @@ echo
echo "== Checkpoints vor der Session =="
entire checkpoint list
cat <<PROMPT
Use this prompt in Copilot CLI:
Migrate the legacy Qt5/C++11 desktop application to Qt6/C++23.
Requirements:
- Read the legacy source project from ${PROJECT_DIR}
- Write the migrated project into qt6-after/qt6-migrated-benchmark
- Do not modify the legacy source tree in place
- Update CMake from Qt5 to Qt6
- Keep Core, Gui, and Widgets explicitly linked
- Replace QRegExp with QRegularExpression
- Replace QDesktopWidget / QApplication::desktop() usage with QScreen-based Qt6 APIs
- Remove legacy QTextCodec usage and use modern Qt6-safe text handling
- Modernize old SIGNAL/SLOT syntax to function-pointer connect syntax
- Replace legacy null pointer literals with nullptr
- Preserve the .ui and .qrc integration
- Preserve application behavior
- Upgrade the project from C++11 to C++23
- For every code change inside a method, add at least three tests covering the changed behavior
- Place all generated tests in qt6-after/qt6-migrated-benchmark/tests
- Update CMake so the migrated application and all tests build successfully with CTest
- Keep the test file naming compatible with repository policy checks
- Briefly explain each migration change
PROMPT
copilot --model "${COPILOT_MODEL}"
envsubst < migration.prompt | copilot --model "${COPILOT_MODEL}"
echo
echo "== Git status after Copilot session =="