GH CLI | Pull Request
The next command will create a PR using a default branch as base branch, and also will fill title and comment of the PR depends on commit messages
gh pr create -f -a "@me"
Command options:
-a
/--assignee
– assignee by their usernames-b
/--body
- body for the pull request-r
/--reviewer
- request reviews from people or teams by their user(group) names-d
/--draft
– mark pull request as a draft-B
/--base
- the base branch, in this branch your code will be merged
gh pr view --web
Last modified 1yr ago