create-pull
Compare original and translation side by side
🇺🇸
Original
English🇨🇳
Translation
ChineseCreate Pull Request
创建拉取请求
Use for pull request creation. Bundled actions are only for CLI gaps and are documented under .
tea pulls createactions/pull-requests/README.mdWhen resolving paths, use the directory bundled relative to this skill directory.
actions/...actions/Pass explicit scope flags (, , or ) to bundled actions when the user names a login, remote, backend, or repository. Otherwise, bundled actions use active-host-first discovery.
--login--remote--repo使用 命令创建拉取请求。内置操作仅用于填补 CLI 的功能空白,相关说明位于 文件中。
tea pulls createactions/pull-requests/README.md解析 路径时,请使用相对于本技能目录打包的 目录。
actions/...actions/当用户指定了登录名、远程仓库、后端或仓库名称时,请向内置操作传递明确的作用域标志(、 或 )。否则,内置操作将采用「优先使用当前活跃主机」的发现策略。
--login--remote--repoCreate
创建
bash
tea pulls create # interactive, current branch -> default branch
tea pulls create --title "Add auth" --description "Implements JWT" \
--head "feature/auth" --base "main" \
--labels "bugfix" --assignees "sh" --milestone "v1.0"
tea pulls create --head "contributor:feature-branch" --base "main" # from forkbash
tea pulls create # interactive, current branch -> default branch
tea pulls create --title "Add auth" --description "Implements JWT" \
--head "feature/auth" --base "main" \
--labels "bugfix" --assignees "sh" --milestone "v1.0"
tea pulls create --head "contributor:feature-branch" --base "main" # from forkWIP PR Convention
WIP PR 约定
Use the normal tea CLI and prefix the title with when a Forgejo/Gitea workflow treats WIP titles as draft-like pull requests.
WIP:bash
tea pulls create --title "WIP: Feature" --head feature-branch
tea pulls create --title "WIP: Feature" --head feature-branch --base develop当 Forgejo/Gitea 的工作流将带有 WIP 前缀的标题视为草稿类拉取请求时,可使用常规 tea CLI 并在标题前添加 前缀。
WIP:bash
tea pulls create --title "WIP: Feature" --head feature-branch
tea pulls create --title "WIP: Feature" --head feature-branch --base developQuick Pattern
快速模式
bash
undefinedbash
undefinedPR from current branch
PR from current branch
git push -u origin HEAD
tea pulls create --title "$(git log -1 --format=%s)" --head "$(git branch --show-current)"
undefinedgit push -u origin HEAD
tea pulls create --title "$(git log -1 --format=%s)" --head "$(git branch --show-current)"
undefinedRediscover Created PR
查询已创建的PR
tea pulls createbash
actions/pull-requests/find-by-branch.py
actions/pull-requests/find-by-branch.py --head "$(git branch --show-current)"
actions/pull-requests/find-by-branch.py --head "contributor:feature-branch" --base mainThe action emits one JSON object per matching pull request as JSONL, suitable for or direct agent parsing.
jqtea pulls createbash
actions/pull-requests/find-by-branch.py
actions/pull-requests/find-by-branch.py --head "$(git branch --show-current)"
actions/pull-requests/find-by-branch.py --head "contributor:feature-branch" --base main该操作会以 JSONL 格式输出,每个匹配的拉取请求对应一个 JSON 对象,适用于 处理或直接由 Agent 解析。
jq