make-pr
Compare original and translation side by side
🇺🇸
Original
English🇨🇳
Translation
ChineseMake Pull Request
创建Pull Request
Flags
参数
| Flag / Arg | Effect |
|---|---|
| Target branch. Default: |
| Prefix the title with |
| Conventional-commit title format. Off, plain English by default. |
If is passed without an ID, stop: " requires a ticket ID
(e.g., )."
--ticket--ticket--ticket ABC-123| 参数 / 自变量 | 作用 |
|---|---|
| 目标分支。默认值: |
| 在标题前添加 |
| 采用约定式提交格式的标题。默认关闭,默认使用简洁英文标题。 |
如果传入参数但未指定编号,将终止操作并提示:"需要工单编号(例如)。"
--ticket--ticket--ticket ABC-123Step 1: Gather context
步骤1:收集上下文信息
- Identify the current branch.
- , commits on this branch.
git log <target>..HEAD --oneline - , the full diff.
git diff <target>...HEAD
With , use the explicit value; never search the branch name or commits
for a ticket number.
--ticket- 识别当前分支。
- 执行,获取该分支的提交记录。
git log <target>..HEAD --oneline - 执行,获取完整的差异内容。
git diff <target>...HEAD
如果使用参数,使用指定的工单编号;切勿从分支名称或提交记录中搜索工单编号。
--ticketStep 2: Generate the title
步骤2:生成标题
Base the title on the branch diff, not commit messages or session context.
- Default: plain English. Capitalize the first word; rest lowercase except
proper nouns and technical terms. No /
feat:/fix:prefix.docs: - : conventional-commit format; follow
--conventional.skills/commit/REFERENCE.md - : prepend
--ticket <id>(uppercase as provided); keep the summary portion ≤60 chars.[<TICKET-ID>]
Examples:
- (ticket, default)
[ABC-123] Add user authentication flow - (default)
Add user authentication flow - (ticket,
[ABC-123] feat: add user authentication flow)--conventional
标题基于分支差异生成,而非提交信息或会话上下文。
- 默认格式:简洁英文。首字母大写;其余字母小写,专有名词和技术术语除外。不添加/
feat:/fix:前缀。docs: - 参数:采用约定式提交格式;遵循
--conventional规范。skills/commit/REFERENCE.md - 参数:在标题前添加
--ticket <id>(按输入的大写格式);摘要部分长度需≤60字符。[<工单编号>]
示例:
- (带工单编号,默认格式)
[ABC-123] Add user authentication flow - (默认格式)
Add user authentication flow - (带工单编号,
[ABC-123] feat: add user authentication flow格式)--conventional
Step 3: Generate the body
步骤3:生成正文
A concise, high-level summary of the branch changes relative to the target.
Group related changes thematically, not commit-by-commit. Factual and brief, no
filler. No Linear references unless was passed.
--ticket简洁、高层次的分支相对于目标分支的变更摘要。按主题分组相关变更,而非按提交逐个罗列。内容需真实简洁,无冗余信息。除非使用了参数,否则不要添加Linear相关引用。
--ticketStep 4: Open the PR
步骤4:创建PR
Use (or equivalent) with the generated title and body, targeting
.
gh pr create--target使用(或等效工具),传入生成的标题和正文,目标分支为指定的分支。
gh pr create--targetStep 5: Report
步骤5:反馈结果
Report the PR URL.
反馈PR的URL。
Constraints
约束条件
- Never commit, build, run, or push.
- Never auto-detect Linear issues from branch names or commits, use the
explicit value only.
--ticket
- 切勿执行提交、构建、运行或推送操作。
- 切勿从分支名称或提交记录中自动检测Linear问题,仅使用参数指定的工单编号。
--ticket