Create a pull request. Use when the user asks to create a PR or push their branch.
Create a pull request following the team workflow.
git status
git log presentation..HEAD --oneline
git diff presentation...HEAD --stat
For this project, the base branch is always presentation.
git push -u origin HEAD
Before creating the PR, verify:
.env, secrets, or build artifacts committedtype(scope): description)James10192 <[email protected]>Check the conversation and commit messages for issue references:
Refs #N or Closes #N, extract the issue numbergh issue view N --json title,body 2>/dev/null to get epic details if availableIf linked to an epic with lots/phases, use this template:
gh pr create \
--base presentation \
--title "<type>(<scope>): <description>" \
--body "$(cat <<'EOF'
## Summary
- [What this PR does in 1-3 bullet points]
## Changes
- `file` — [what changed and why]
## Epic: #N — [Epic title]
**Lot progress:** X/Y
| Lot | Description | Status |
|-----|-------------|--------|
| 1 | ... | done/in-progress/planned |
## Type of change
- [ ] feat — new feature
- [ ] fix — bug fix
- [ ] refactor — no behavior change
- [ ] chore — maintenance
## Testing
- [ ] Tested on esbtp-abidjan.klassci.com after deploy
- [ ] No regressions
## Checklist
- [ ] No secrets or sensitive data committed
- [ ] PHP syntax verified (php -l) on all modified PHP files
Refs #N
EOF
)"
If NOT linked to an epic, use the standard template:
gh pr create \
--base presentation \
--title "<type>(<scope>): <description>" \
--body "$(cat <<'EOF'
## Summary
- [What this PR does in 1-3 bullet points]
## Changes
- `file` — [what changed and why]
## Type of change
- [ ] feat — new feature
- [ ] fix — bug fix
- [ ] refactor — no behavior change
- [ ] chore — maintenance
## Testing
- [ ] Tested on esbtp-abidjan.klassci.com after deploy
- [ ] No regressions
## Checklist
- [ ] No secrets or sensitive data committed
- [ ] PHP syntax verified (php -l) on all modified PHP files
EOF
)"
Return the PR URL to the user.
After PR is created, inform the user:
"PR créée. Après review et merge, lancez
/git:worktree-finish <N>"
$ARGUMENTS