在 Manus 中运行任何 Skill
一键导入
一键导入
一键在 Manus 中运行任何 Skill
开始使用update-pr
星标6
分支1
更新时间2026年5月22日 18:17
Update existing pull request with new commits
安装
用 Codex 或 Claude 帮你安装 复制这段 Prompt,粘贴到 Codex、Claude 或其他助手里,让它检查 Skill 页面并帮你完成安装。
SKILL.md
readonly菜单
Update existing pull request with new commits
用 Codex 或 Claude 帮你安装 复制这段 Prompt,粘贴到 Codex、Claude 或其他助手里,让它检查 Skill 页面并帮你完成安装。
基于 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