ship

Compare original and translation side by side

🇺🇸

Original

English
🇨🇳

Translation

Chinese

Context

背景信息

  • Current git status: !
    git status
  • Current git diff (staged and unstaged changes): !
    git diff HEAD
  • Current branch: !
    git branch --show-current
  • Recent commits: !
    git log --oneline -10
  • 当前git状态: !
    git status
  • 当前git差异(已暂存和未暂存的变更): !
    git diff HEAD
  • 当前分支: !
    git branch --show-current
  • 最近提交记录: !
    git log --oneline -10

Your task

你的任务

Ship the current changes by following these steps in order:
按照以下步骤依次发布当前变更:

1. Create a branch if needed

1. 按需创建分支

If on
master
, create and checkout a new descriptive branch based on the changes.
如果当前在
master
分支上,请基于现有变更创建一个描述性的新分支并切换到该分支。

2. Commit

2. 提交代码

Stage all changed files and create a single commit with an appropriate message. If
$ARGUMENTS
is provided, use it as the commit message.
暂存所有已修改的文件,并创建一条带有合适信息的提交记录。如果提供了
$ARGUMENTS
,则将其用作提交信息。

3. Run CI

3. 运行CI

Run
bin/ci
and wait for it to complete. This is mandatory — do not skip it.
  • If
    bin/ci
    fails: stop here. Show the failure output and suggest fixes. Do NOT push or create a PR.
  • If
    bin/ci
    passes: continue to step 4.
执行
bin/ci
并等待其完成。此步骤为必填项——请勿跳过。
  • bin/ci
    执行失败:在此处停止操作。展示失败输出并建议修复方案。请勿推送代码或创建PR。
  • bin/ci
    执行成功:继续执行步骤4。

4. Open a PR

4. 创建PR

bin/ci
already pushed the branch to origin. Create a pull request using
gh pr create
and return the PR URL.
bin/ci
已将分支推送到远程仓库origin。使用
gh pr create
创建拉取请求,并返回PR的URL。