Skip to content

gh-pr-create: add Chinese translation #17219

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
wants to merge 1 commit into
base: main
Choose a base branch
from
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
25 changes: 25 additions & 0 deletions pages/common/gh-pr-create.md
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,7 @@

`gh pr create {{[-f|--fill]}}`


- Create a draft pull request:

`gh pr create {{[-d|--draft]}}`
Expand All @@ -22,3 +23,27 @@
- Start opening a pull request in the default web browser:

`gh pr create {{[-w|--web]}}`

- 基于当前分支创建PR,与基础分支比较,并在编辑器中填写PR信息:
gh pr create

- 创建PR并指定标题和描述:
gh pr create --title "标题" --body "描述"

- 创建PR并指定目标分支:
gh pr create --base 目标分支 --head 源分支

- 创建PR并指定审核者:
gh pr create --reviewer username1,username2

- 创建PR并指定负责人:
gh pr create --assignee username1,username2

- 创建PR并添加标签:
gh pr create --label bug,enhancement

- 创建PR并同时指定审核者、负责人和标签:
gh pr create --reviewer team-name,username --assignee username --label "priority: high"

- 在浏览器中创建PR:
gh pr create --web
Loading