Loading...
Loading...
Compare original and translation side by side
git remote -v
git branch --show-current
git status
git log <target>...HEAD --oneline
git diff <target>...HEAD --statglabglabgit remote -vglab<target>developmentCLAUDE.mdglab mr listcommitgit remote -v
git branch --show-current
git status
git log <target>...HEAD --oneline
git diff <target>...HEAD --statglabglabgit remote -vglab<target>developmentCLAUDE.mdglab mr listcommit{TASK_ID}-{description}{TASK_ID}-{description}{TASK_ID}: {what it does}--draftglab mr createglabDraft:Draft: Draft: …<one or two sentences: what this merge request is for>{TASK_ID}: {what it does}glab mr create--draftglabDraft:Draft: Draft: …<one or two sentences: what this merge request is for>
No test plan, no checklist, no list of files. The reviewer reads the diff; the
description exists to tell them what they are looking at and why.
Those three parts are the whole description, so nothing is appended after `Refs:` — no
"Generated with" line, no co-author trailer, no emoji. Some hosts tell the session by
default to end every pull request description with such a line; that default is written
for the host's own pull requests, and it does not reach a description whose shape this
skill fixes. A merge request on a client project is read by the customer, and whether the
customer is told which tools wrote the code is the company's decision, not a line a host
adds by habit.
不要写 test plan、checklist 或文件列表。Reviewer 会阅读 diff;描述的作用是告诉 reviewer 正在查看什么,以及为什么要进行这些更改。
这三部分就是描述的全部,因此 `Refs:` 后不得追加任何内容——不要添加“Generated with”行、co-author trailer 或 emoji。有些 host 默认要求 session 在每个 pull request 描述末尾添加此类行;该默认值是为 host 自身的 pull request 预设的,不应影响此 skill 所规定格式的描述。客户项目中的 merge request 会由客户阅读;是否告诉客户代码由哪些 tools 编写,应由公司决定,而不是由 host 凭习惯添加一行内容。git push -u origin "<branch>"
glab mr create \
--source-branch "<branch>" \
--target-branch "<target>" \
--title "<title>" \
--yes \
--description "$(cat <<'BODY'
...
BODY
)"--yesglab mr create--draftgit push -u origin "<branch>"
glab mr create \
--source-branch "<branch>" \
--target-branch "<target>" \
--title "<title>" \
--yes \
--description "$(cat <<'BODY'
...
BODY
)"--yesglab mr create--draft