logo
Free, unlimited AI code reviews that run on commit
git-lrc git-lrc GitHub Install Now We'd appreciate a star git-lrc - Free, unlimited AI code reviews that run on commit | Product Hunt git-lrc - Free, unlimited AI code reviews that run on commit | Product Hunt

git-pull-request - Create pull request for GitHub project

Author

       Written by Tj Holowaychuk <tj@vision-media.ca>

Description

       Create pull request for a project on GitHub via command line.

       A  personal  access  token is required for making the API call to open the pull request(s) in GitHub. API
       Documentation here https://docs.github.com/en/rest/reference/pulls#create-a-pull-request

       Make sure the personal access token has the right OAuth scopes for the repo(s)

       Use gitconfig--global--addgit-extras.github-personal-access-token<your-personal-access-token>

       If  using  multiple  accounts,  override  the  global  value  in  the  specific  repo  using  gitconfiggit-extras.github-personal-access-token<other-acc-personal-access-token>

Examples

       $ git pull-request master
       Everything up-to-date

         create pull-request for spacewander/spacewander-toolbox 'master'

         title: test
         body:
         base [master]:
         GitHub two-factor authentication code (leave blank if not set up):

       ...

Name

git-pull-request - Create pull request for GitHub project

Options

       <target branch>

       The target branch you want to send pull request to.

Reporting Bugs

       <https://github.com/tj/git-extras/issues>

See Also

       <https://github.com/tj/git-extras>

                                                  October 2024                               GIT-PULL-REQUEST(1)

Synopsis

git-pull-request [<target branch>]

See Also