GSP
Quick Navigator

Search Site

Unix VPS
A - Starter
B - Basic
C - Preferred
D - Commercial
MPS - Dedicated
Previous VPSs
* Sign Up! *

Support
Contact Us
Online Help
Handbooks
Domain Status
Man Pages

FAQ
Virtual Servers
Pricing
Billing
Technical

Network
Facilities
Connectivity
Topology Map

Miscellaneous
Server Agreement
Year 2038
Credits
 

USA Flag

 

 

Man Pages
GH-PR-CREATE(1) GitHub CLI manual GH-PR-CREATE(1)

gh-pr-create - Create a pull request

gh pr create [flags]

Create a pull request on GitHub.

When the current branch isn't fully pushed to a git remote, a prompt will ask where to push the branch and offer an option to fork the base repository. Use --head to explicitly skip any forking or pushing behavior.

A prompt will also ask for the title and the body of the pull request. Use --title and --body to skip this, or use --fill to autofill these values from git commits.

Link an issue to the pull request by referencing the issue in the body of the pull request. If the body text mentions Fixes #123 or Closes #123, the referenced issue will automatically get closed when the pull request gets merged.

By default, users with write access to the base repository can push new commits to the head branch of the pull request. Disable this with --no-maintainer-edit.

-a, --assignee <login>
Assign people by their login. Use "@me" to self-assign.

-B, --base <branch>
The branch into which you want your code merged

-b, --body <string>
Body for the pull request

-F, --body-file <file>
Read body text from file

-d, --draft
Mark pull request as a draft

-f, --fill
Do not prompt for title/body and just use commit info

-H, --head <branch>
The branch that contains commits for your pull request (default: current branch)

-l, --label <name>
Add labels by name

-m, --milestone <name>
Add the pull request to a milestone by name

--no-maintainer-edit
Disable maintainer's ability to modify pull request

-p, --project <name>
Add the pull request to projects by name

--recover <string>
Recover input from a failed run of create

-r, --reviewer <handle>
Request reviews from people or teams by their handle

-t, --title <string>
Title for the pull request

-w, --web
Open the web browser to create a pull request

-R, --repo <[HOST/]OWNER/REPO>
Select another repository using the [HOST/]OWNER/REPO format

$ gh pr create --title "The bug is fixed" --body "Everything works again"
$ gh pr create --reviewer monalisa,hubot  --reviewer myorg/team-name
$ gh pr create --project "Roadmap"
$ gh pr create --base develop --head monalisa:feature

gh-pr(1)
May 2022

Search for    or go to Top of page |  Section 1 |  Main Index

Powered by GSP Visit the GSP FreeBSD Man Page Interface.
Output converted with ManDoc.