Creates GitHub pull requests with conventional commit titles for Geovendas repos. Use when creating PRs, submitting changes for review, or when the user says /pr or asks to create a pull request.
Creates GitHub PRs with titles in Conventional Commits format for Geovendas repositories.
<type>(<scope>): <summary>
| Type | Description |
|---|---|
feat | New feature |
fix | Bug fix |
perf | Performance improvement |
test | Adding/correcting tests |
docs | Documentation only |
refactor | Code change (no bug fix or feature) |
build |
| Build system or dependencies |
ci | CI configuration |
chore | Routine tasks, maintenance |
Use the project/module area affected:
vaadin6 - Backend + Backoffice legacy (geovendas-vaadin6)vue - Frontend CRM 360 (geovendas-vue)vaadin23 - Novo Backoffice (geovendas-vaadin23)pedidos - Forca de Vendas / App ISFdotnet - Integracoes .NET (Comm, B2B, Storage)etl - ETL Java 8b2b - Portal B2Bgeochat - API WhatsApp (geochat-api)entity - Entidades compartilhadas (geovendas-entity)service - Services compartilhados (geovendas-service)repo - Repositories compartilhados (geovendas-repository)lib - Biblioteca Java 17 (geovendas-java17-lib)api - REST API endpointsfeat(vue):) is always in English.git status
git log --oneline -10
Determine:
Do NOT assume main. Detect the actual default branch:
gh repo view --json defaultBranchRef --jq '.defaultBranchRef.name'
If the command fails, fall back to checking for main or master:
git branch -r | grep -E 'origin/(main|master)$'
Review all commits since diverging from base branch:
git log <base-branch>..HEAD --oneline
git diff <base-branch>..HEAD --stat
Determine:
Try to extract the Jira ticket automatically:
GEO-\d+ in the current branch name (e.g., feature/GEO-1234-add-filter → GEO-1234)GEO-\d+ in commit messages since base branchCompose the PR title and body. Present to the user for review:
Here's the PR I'll create:
Title:
fix(vaadin6): fixed N+1 query in prospect listingBase:
mainBody:
## Summary - Fixed N+1 query in prospect listing by adding join fetch - Added index on prospect.segment_id for faster filtering ## Jira [GEO-1234](https://geovendas.atlassian.net/browse/GEO-1234) ## Checklist - [x] Titulo da PR segue Conventional Commits - [ ] Testes incluidos ou justificativa - [ ] Procedure Description preenchida na tarefa JiraCreate as regular PR or draft?
Want to adjust anything?
Wait for approval before proceeding.
Only after the user approves the PR content, push the branch:
git push -u origin HEAD
If push fails (e.g., no remote, auth error), report the error and stop.
gh pr create --title "<title>" --base "<base-branch>" --body "$(cat <<'EOF'
## Summary
<bullet points describing the changes>
## Jira
[GEO-XXXX](https://geovendas.atlassian.net/browse/GEO-XXXX)
## Checklist
- [x] Titulo da PR segue Conventional Commits
- [ ] Testes incluidos ou justificativa
- [ ] Procedure Description preenchida na tarefa Jira
EOF
)"
If the user chose draft, add --draft flag.
After creation, show:
https://geovendas.atlassian.net/browse/GEO-XXXXfeat(vue): added prospect filtering by segment
fix(vaadin6): resolved N+1 query in prospect listing
refactor(service): extracted price calculation to shared util
feat(api)!: removed deprecated v1 endpoints