gh pr
all
Manage GitHub pull requests. Some subcommands such as `create` have their own usage documentation.
More info →Subcommands (5)
Options (4)
booleanCreate a pull request
Example:
gh pr {{[new|create]}}booleanCheck out a specific pull request locally
Example:
gh {{[co|pr checkout]}} {{pr_number|url|branch}}-a, --approvebooleanApprove the pull request for the current branch
Example:
gh pr review {{[-a|--approve]}}-B, --basebooleanEdit the base branch of a pull request
Example:
gh pr edit {{[-B|--base]}} {{branch_name}}Examples (8)
Create a pull request
gh pr [new|create]Check out a specific pull request locally
gh [co|pr checkout] pr_number|url|branchApprove the pull request for the current branch
gh pr review [-a|--approve]Merge the pull request associated with the current branch interactively
Check the status of the current repository's pull requests
gh pr statusmade by @shridhargupta | data from tldr-pages