Skip to content

Commit ea26fe5

Browse files
refactor(commands): enhance summary presentation for git push process
1 parent 207a0a0 commit ea26fe5

1 file changed

Lines changed: 22 additions & 14 deletions

File tree

.opencode/commands/git-push.md

Lines changed: 22 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -36,28 +36,36 @@ Then stop the process.
3636

3737
## Step 3: Present Summary to User
3838

39-
If there ARE commits to push, you MUST:
39+
If there ARE commits to push, present a summary to the user in this exact format:
4040

41-
1. **Analyze commits to be pushed**
42-
2. **Provide a clear, concise summary** to the user including:
43-
- The number of commits to be pushed
44-
- Brief description of each commit
45-
- The target branch and remote
46-
- Any warnings about force push or conflicts
47-
3. **Ask for confirmation** before proceeding with the push
48-
49-
Example summary format:
5041
```
51-
I found the following commits ready to push:
42+
## Summary
43+
[1-2 sentence overall description of commits to push]
44+
45+
## Commits to Push
46+
47+
1. [commit message]
48+
2. [commit message]
49+
3. [commit message]
5250
53-
1. refactor(utils): improve validation logic with better error handling
54-
2. test(utils): add unit tests for validation
51+
## Target
52+
Branch: [branch name]
53+
Remote: [remote name]
54+
Status: [commits ahead/details]
5555
56-
Target: origin/main (2 commits ahead)
56+
## Attention Required
57+
[List any issues like force push needed, conflicts, or None if nothing to note]
58+
59+
---
5760
5861
Is it okay to proceed with pushing these commits?
5962
```
6063

64+
Then:
65+
1. **Analyze commits to be pushed**
66+
2. **Provide the formatted summary** to the user
67+
3. **Ask for confirmation** before proceeding with the push
68+
6169
## Step 4: Push to Remote
6270

6371
Only after receiving user confirmation:

0 commit comments

Comments
 (0)