create-pr
Compare original and translation side by side
🇺🇸
Original
English🇨🇳
Translation
ChinesePull Request
拉取请求
Context
上下文
Run in parallel:
- (never -uall)
git status git diff HEAD- Branch tracking status
- and
git diff [base-branch]...HEADgit log
并行运行以下命令:
- (永远不要使用-uall参数)
git status git diff HEAD- 分支追踪状态
- 和
git diff [base-branch]...HEADgit log
Template Locations
模板位置
.github/pull_request_template.md.github/PULL_REQUEST_TEMPLATE.md.github/PULL_REQUEST_TEMPLATE/docs/pull_request_template.mdpull_request_template.md
.github/pull_request_template.md.github/PULL_REQUEST_TEMPLATE.md.github/PULL_REQUEST_TEMPLATE/docs/pull_request_template.mdpull_request_template.md
Workflow
工作流程
- Search for PR template
- Read template if found
- Review ALL commits (not just latest)
- Draft title (<70 chars) and body:
- Use template structure if available
- Otherwise: Summary + Test plan
- In parallel:
- Create branch if needed
- Push with if needed
-u - Create PR with using HEREDOC
gh pr create
- 搜索PR模板
- 若找到则读取模板
- 审核所有提交记录(不只是最新的)
- 草拟标题(少于70字符)和正文:
- 若有模板则使用模板结构
- 若无模板:摘要 + 测试计划
- 并行执行:
- 若需要则创建分支
- 若需要则使用参数推送
-u - 使用HEREDOC通过命令创建PR
gh pr create
Rules
规则
- Use PR template if available
- Analyze ALL commits
- Return PR URL
- Use CLI
gh
- 若有PR模板则使用
- 分析所有提交记录
- 返回PR链接
- 使用CLI工具
gh