Loading...
Loading...
Compare original and translation side by side
$ship-itagent/$ship-itagent/git add <paths>
git commit -m "$(cat <<'EOF'
<Imperative subject line, no trailing period>
<Body: explain WHY the change is needed and what it does, not a restatement of
the diff. Wrap at ~80 columns.>
<attribution trailer required by the active global instructions, if any>
EOF
)"stop-slopgit add <paths>
git commit -m "$(cat <<'EOF'
<祈使语气的主题行,末尾不要加句号>
<正文:说明变更的必要性和作用,不要重复差异内容。每行约80个字符换行。>
<若当前全局规则要求,添加归属信息尾注>
EOF
)"stop-slopgh pr list --state open --head <branch> --json number,title,url,isDraft,baseRefName,headRefNamegh pr ready <n>gh pr create --base <default-branch> --head <branch> \
--title "<same imperative style as the commit subject>" \
--body "$(cat <<'EOF'gh pr list --state open --head <branch> --json number,title,url,isDraft,baseRefName,headRefNamegh pr ready <n>gh pr create --base <default-branch> --head <branch> \
--title "<与提交主题相同的祈使语气风格>" \
--body "$(cat <<'EOF'
Notes:
- Reference the issue with `Fixes #<n>` (or `Closes #<n>`) when the work started
from one; many workstreams open with "plan and implement a fix for issue N".
- Flex headings to fit the change while keeping the reason, implementation, and
concrete verification easy to find. Include configuration instructions only
when setup or runtime configuration changed. A short fenced code block for a
key type or signature is useful when it clarifies the change.
- Add an attribution footer only when the active global instructions require it.
- Base the default branch. Create a normal ready PR, with no labels or reviewers
unless asked. Do not add an agent-specific title prefix.
- Before watching CI, verify the final PR's base, head, readiness, title, body,
and URL with `gh pr view`.
注意事项:
- 若工作始于某个issue,使用`Fixes #<n>`(或`Closes #<n>`)关联该issue;许多工作流以“规划并修复issue N”为开端。
- 根据变更调整标题,同时确保变更原因、实现方式和具体验证内容易于查找。仅当设置或运行时配置发生变更时,才添加配置说明。关键类型或签名的简短代码块有助于明确变更内容。
- 仅当当前全局规则要求时,才添加归属信息页脚。
- 以默认分支为基准分支。创建常规的就绪状态PR,除非另有要求,否则不要添加标签或指定审核人。不要添加Agent专属的标题前缀。
- 在监控CI之前,使用`gh pr view`验证最终PR的基准分支、头部分支、就绪状态、标题、正文和URL。gh pr checks <n> --watch --interval 20gh run view <run-id> --log-failedgh pr checks <n> --watch --interval 20gh run view <run-id> --log-failed