2021-06-28 20:58:36 +01:00
|
|
|
# gh pr create
|
|
|
|
|
|
|
|
> Manage GitHub pull requests from the command-line.
|
|
|
|
> More information: <https://cli.github.com/manual/gh_pr_create>.
|
|
|
|
|
|
|
|
- Interactively create a pull request:
|
|
|
|
|
|
|
|
`gh pr create`
|
|
|
|
|
|
|
|
- Create a pull request, determining the title and description from the commit messages of the current branch:
|
|
|
|
|
|
|
|
`gh pr create --fill`
|
|
|
|
|
|
|
|
- Create a draft pull request:
|
|
|
|
|
|
|
|
`gh pr create --draft`
|
|
|
|
|
|
|
|
- Create a pull request specifying the base branch, title, and description:
|
|
|
|
|
|
|
|
`gh pr create --base {{base_branch}} --title "{{title}}" --body "{{body}}"`
|
|
|
|
|
2022-05-02 11:55:38 +01:00
|
|
|
- Start opening a pull request in the default web browser:
|
2021-06-28 20:58:36 +01:00
|
|
|
|
|
|
|
`gh pr create --web`
|