You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Extract shell scripts from commit-as-pull-request prompt (#102)
Move git operations into reusable scripts under .github/scripts/ci/:
- parse-repo-info.sh: extract owner/repo from remote URL
- commit-and-push.sh: verify, format, branch, commit, push
- sync-after-merge.sh: sync main and delete branch
Simplify the prompt from 10 steps to 6 by delegating to scripts.
# Outputs: BRANCH_NAME (may differ if suffix was appended)
62
50
```
63
51
64
-
If the push reports "Everything up-to-date", verify with `git log --oneline -1` that the commit exists, then retry with `git push -u origin <branch-name> 2>&1`.
52
+
Pass `--skip-format` as a third argument to skip `mvn spotless:apply` (e.g., when only non-Java files changed).
65
53
66
-
### Step 7: Create a pull request
54
+
### Step 4: Create a pull request
67
55
68
56
Use the GitHub MCP `create_pull_request` tool with:
69
57
70
-
-**owner** and **repo**: from Step 2
58
+
-**owner** and **repo**: from Step 1
71
59
-**title**: the first line of the commit message
72
-
-**head**: the branch name
60
+
-**head**: the branch name from Step 3
73
61
-**base**: `main` (or the repository's default branch)
74
62
-**body**: A well-structured PR description including:
75
63
-**Summary**: What the change does and why
76
64
-**Changes**: Bullet list of files/areas modified
77
65
-**Testing**: How the changes were verified
78
66
79
-
### Step 8: Merge the pull request
67
+
### Step 5: Merge the pull request
80
68
81
69
Use the GitHub MCP `merge_pull_request` tool with:
0 commit comments