en un clic
update-pr
Update existing pull request with new commits
Installer avec Codex ou Claude Copiez ce prompt, collez-le dans Codex, Claude ou un autre assistant, puis laissez-le vérifier la page du skill et l'installer pour vous.
Menu
Update existing pull request with new commits
Installer avec Codex ou Claude Copiez ce prompt, collez-le dans Codex, Claude ou un autre assistant, puis laissez-le vérifier la page du skill et l'installer pour vous.
Basé sur la classification professionnelle SOC
| name | update-pr |
| description | Update existing pull request with new commits |
Push new commits to an existing pull request and optionally update its description.
Check current branch and PR status:
git branch --show-current
gh pr view --json number,title,url,baseRefName,body
/create-pr insteadReview ALL commits in the branch (not just unpushed ones):
# Get all commits in this branch compared to the base branch
git log <base-branch>..HEAD --oneline
# Also check if there are unpushed commits
git log origin/<current-branch>..HEAD --oneline
Push any unpushed commits:
git push
Analyze all changes and recompute PR description:
Update the PR:
# Update title if needed
gh pr edit <pr-number> --title "New Title"
# Update description
gh pr edit <pr-number> --body "$(cat <<'EOF'
## Summary
- First main change
- Second main change
- Additional improvements
EOF
)"
Return the PR URL and summary of what was done
✅ Found PR #123: "Add user authentication"
📝 All commits in this branch:
- abc1234 Initial authentication setup
- def5678 Add JWT token support
- 789abcd Fix login validation
- 012cdef Add password reset
📤 Unpushed commits: 2
- 789abcd Fix login validation
- 012cdef Add password reset
🚀 Pushing commits...
✅ Pushed to origin
🔄 Recomputing PR description based on all commits...
✅ Updated PR #123:
- Title: "Add user authentication" (unchanged)
- Description: Updated to reflect all changes
PR URL: https://github.com/org/repo/pull/123