|
|
@@ -59,14 +59,14 @@ Automate the Git commit and push process by intelligently analyzing file changes
|
|
|
- src/pages/exam/ContentAreaMedium.tsx
|
|
|
- src/pages/exam/ContentAreaSmall.tsx
|
|
|
`
|
|
|
+## 2.5 Use the `execute_command` tool to run `git pull`
|
|
|
+ if there is something wrong or conflict , prompt the user to interupt to fix
|
|
|
+## 3 Important ! Show the generated commit message prominently so the user can verify its accuracy.
|
|
|
|
|
|
+## 4. Present Command List for User Review
|
|
|
|
|
|
|
|
|
-## 3. Present Command List for User Review
|
|
|
-
|
|
|
-1. Important ! Show the generated commit message prominently so the user can verify its accuracy.
|
|
|
-
|
|
|
-## 4. Interactive Command Execution Confirmation
|
|
|
+## 5. Interactive Command Execution Confirmation
|
|
|
|
|
|
1. Use the `ask_followup_question` tool to ask the user for confirmation with clickable options:
|
|
|
|
|
|
@@ -74,11 +74,11 @@ Automate the Git commit and push process by intelligently analyzing file changes
|
|
|
- Options: ["开始执行命令", "修改提交信息", "取消操作"]
|
|
|
|
|
|
2. Handle user response:
|
|
|
- - If "开始执行命令": Proceed to step 5
|
|
|
+ - If "开始执行命令": Proceed to step 6
|
|
|
- If "修改提交信息": Ask user for new commit message and update commands
|
|
|
- If "取消操作": Stop the workflow
|
|
|
|
|
|
-## 5. Execute Git Commands Step by Step
|
|
|
+## 6. Execute Git Commands Step by Step
|
|
|
|
|
|
1. **Execute git add .**
|
|
|
|
|
|
@@ -93,13 +93,8 @@ Automate the Git commit and push process by intelligently analyzing file changes
|
|
|
- Display the commit result including commit hash
|
|
|
- Confirm the commit was successful
|
|
|
|
|
|
-3. **Execute git push**
|
|
|
-
|
|
|
- - Use the `execute_command` tool to run `git push`
|
|
|
- - Display the push result
|
|
|
- - Confirm files were successfully pushed to remote repository
|
|
|
|
|
|
-4. **Final Confirmation**
|
|
|
+3. **Final Confirmation**
|
|
|
- Use the `attempt_completion` tool to present the final results
|
|
|
- Include summary of:
|
|
|
- Files that were committed
|