Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

For more information about a sub-command, see its own wiki page.

...

Code Block
$ git pr -h
git-pr is used for interacting with pull requests from a command line.
The following sub-commands are available:

- apply -- apply a pull request
  Usage: git pr apply [<ID>]
  Flags:
    -u, --username NAME  Username on host
    -r, --remote NAME    Name of remote, defaults to 'origin'
        --no-token       Do not use a personal access token (PAT)
        --verbose        Turn on verbose output
        --debug          Turn on debugging output
        --version        Print the version of this tool

- approve -- approve a pull request
  Usage: git pr approve [<ID>]
  Flags:
    -u, --username NAME  Username on host
    -r, --remote NAME    Name of remote, defaults to 'origin'
    -m, --message TEXT   Message to author as part of approval (e.g. "Looks good!")
        --verbose        Turn on verbose output
        --debug          Turn on debugging output
        --version        Print the version of this tool

- checkoutcc -- checkoutadd one aor pullmore requestlabels
  Usage: git pr checkout [<ID>]cc <ARG>...
  Flags:
       -u, --usernameverbose NAME  UsernameTurn on verbose hostoutput
    -r,   --remotedebug NAME    NameTurn ofon remote,debugging defaultsoutput
 to 'origin'
    -b, --branchversion NAME  Print the Nameversion of target branch, defaults to 'master'
        --no-token       Do not use a personal access token (PAT)
        --verbose        Turn on verbose output
        --debug          Turn on debugging outputthis tool

- checkout -- checkout a pull request
  Usage: git pr checkout [<ID>]
  Flags:
    -u, --username NAME  Username on host
    -r, --remote NAME    Name of remote, defaults to 'origin'
    -b, --branch NAME    Create a new branched named NAME
        --versionno-token       Do not Printuse thea versionpersonal ofaccess thistoken tool

- close(PAT)
        --verbose  close a pull request
  Usage: gitTurn pron closeverbose [<ID>]output
   Flags:
    -u, --usernamedebug NAME  Username on host
    -r, --remote NAME    Name of remote, defaults to 'origin' Turn on debugging output
        --verboseversion        Print the Turnversion onof verbosethis outputtool

- close -- close a pull request
  --debugUsage: git pr close [<ID>]
  Flags:
    Turn on debugging output
   -u, --username NAME  Username on host
    -r, --versionremote NAME    Name of remote,  Print the version of this tool

- createdefaults to 'origin'
        --verbose create  a pull request
  Usage: gitTurn pron createverbose [<ID>]output
    Flags:
    -u, --usernamedebug NAME         Turn Usernameon ondebugging hostoutput
    -r, --remote NAME  --version        Print the Nameversion of remote, defaults to 'origin'
    -b, --branch NAME        this tool

- contributor -- add or remove contributors
  Usage: git pr contributor [<ID>]
  Flags:
    Name of target branch, defaults to 'master' --add USERNAME     Consider pull request contributed to by this user
        --ccremove MAILINGUSERNAME LISTS Do not consider pull request contributed Mailing lists to CCby for inital RFR e-mailthis user
        --ignore-workspaceverbose       Ignore local changes inTurn worktreeon andverbose stagingoutput
 area when creating pull request
  --debug      --ignore-local-commits   Ignore local commits notTurn pushedon when creating pull request
 debugging output
       --publishversion          Print the version of this tool

- Publishcreate the-- localcreate branch before creating the a pull request
  Usage: git pr create [<ID>]
  --jcheckFlags:
    -u, --username NAME          Username Run jcheck before creating the pull requeston host
       -r, --draftremote NAME            Name of remote, defaults  Create a pull request in draft stateto 'origin'
    -b,    --verbosebranch NAME            Name of target Turnbranch, ondefaults verboseto output'master'
        --debugcc MAILING LISTS       Mailing lists to CC for inital RFR e-mail
  Turn on debugging output
   --backport REV    --version       Create a backport pull request for the given revision
 Print the version of this tool

- fetch --ignore-workspace fetch a pull request
  Usage: git pr fetch [<ID>]
  Flags:
Ignore local changes in worktree and staging area when creating pull request
        --u, ignore--username NAME  Username on hostlocal-commits   Ignore local commits not pushed when creating pull request
    -r, --remote NAME    Name of remote, defaults to 'origin'
    -b, --branch NAME    Name of target branch, defaults to 'master'    --publish                Publish the local branch before creating the pull request
        --jcheck                 Run jcheck before creating the pull request
        --draft                  Create a pull request in draft state
        --verbose                Turn on verbose output
        --debug                  Turn on debugging output
        --version                Print the version of this tool

- csr -- require CSR for the pull request
  Usage: git pr csr [<ID>]
  Flags:
       --needed     This pull request needs an approved CSR before integration
       --unneeded   This pull request does not need an approved CSR before integration
       --verbose    Turn on verbose output
       --debug      Turn on debugging output
       --version    Print the version of this tool

- fetch -- fetch a pull request
  Usage: git pr fetch [<ID>]
  Flags:
    -u, --username NAME  Username on host
    -r, --remote NAME    Name of remote, defaults to 'origin'
        --no-token       Do not use a personal access token (PAT)
        --verbose        Turn on verbose output
        --debug          Turn on debugging output
        --version        Print the version of this tool

- info -- show status of a pull request
  Usage: git pr info [<ID>]
  Flags:
    -u, --username NAME   Username on host
    -r, --remote NAME     Name of remote, defaults to 'origin'
        --no-decoration   Hide any decorations when listing PRs
        --no-token        Do not use a personal access token (PAT)
        --checks          Show information about checks
        --author          Show the author of the pull request
        --title           Show the title of the pull request
        --assignees       Show the assignees of the pull request
        --reviewers       Show the reviewers of the pull request
        --contributors    Show the additional contributors to the pull request
        --issues          Show the issues associated with the pull request
        --commits         Show the commits in pull request
        --branch          Show the target branch for the pull request
        --url             Show the url for the pull request
        --status          Show the status for the pull request
        --no-tokenlabels         Do notShow usethe alabels personalfor accessthe tokenpull (PAT)request
        --verbose         Turn on verbose output
        --debug           Turn on debugging output
        --version         Print the version of this tool

- infointegrate -- show statusintegrate of a pull request
  Usage: git pr infointegrate [<ID>]
  Flags:
    -u, --username NAME   Username on host
    -r, --remote NAME     Name of remote, defaults to 'origin'
        --no-decorationatomic   Hide any decorations when listing PRs
 Integrate the pull     --no-token        Do not use a personal access token (PAT)request atomically
        --checks  verbose        ShowTurn informationon aboutverbose checksoutput
        --authordebug          ShowTurn theon author of the pull requestdebugging output
        --titleversion        Print   Show the titleversion of the pull request
        --assignees       Show the assignees of the pull request
 this tool

- issue -- add, remove or create issues
  Usage: git pr issue [<ID>]
  Flags:
       --add ID       --reviewers       ShowConsider theissue reviewerssolved ofby thethis pull request
        --contributorsremove ID   Show the additional contributors to the pull request
    Do not consider issue --issuesas solved by this pull request
     Show the issues associated with the pull request--priority 1|2|3|4|5  Priority for issue
        --commitscomponent NAME      Component for Showissue
 the commits in pull request
  --create      --branch        Create  Show the target branchan issue for thethis pull request
        --urlverbose             Turn on verbose output
  Show the url for the pull--debug request
        --status      Turn on debugging output
 Show the status for the pull request
--version        --labels     Print the version of this Show the labels for thetool

- list -- list open pull requestrequests
  Usage: git pr list [<ID>]
  --verboseFlags:
    -u, --username NAME   Turn on verbose output
        --debug           Turn on debugging output
 Username on host
    -r, --versionremote NAME          Print the version of this tool

- integrate -- integrate a pull request
  Usage: git pr integrate [<ID>]
  Flags:
  Name of -uremote, --usernamedefaults NAMEto 'origin'
 Username on host
    -r, --remote NAMEauthors LIST        Name of remote, defaults to 'origin'
        --atomic         IntegrateComma theseparated pulllist requestof atomicallyauthors
        --verboseassignees LIST        Turn on verbose output
        --debug         Comma Turnseparated onlist debuggingof outputassignees
        --versionlabels LIST                 Print the version of this tool

- list -- list open pull requests
  Usage: gitComma prseparated list [<ID>]of labels
  Flags:
     -u, --username NAMEissues LIST                               Comma separated Usernamelist onof hostissues
        -r, --remote NAME  --columns id,title,author,assignees,labels  Comma separated list of columns to show
        --no-decoration                     Name of remote, defaults to 'origin'
   Hide any decorations when listing --authorsPRs
 LIST       --no-draft                       Comma separated list of authors
       Hide --assigneesall LISTpull requests in draft state
        --no-token                Comma separated list of assignees
        --labels LIST     Do not use a personal access token (PAT)
        --verbose           Comma separated list of labels
        --issues LIST           Turn on verbose output
        --debug         Comma separated list of issues
        --columns id,title,author,assignees,labels  Comma separated list of columns to show
       Turn --no-decorationon debugging output
        --version                   Hide any decorations when listing PRs
        --no-draft   Print the version of this tool

- reviewer -- add or remove reviewers
  Usage: git pr reviewer [<ID>]
  Flags:
       --add USERNAME    Hide allConsider pull requestsrequest reviewed inby draftthis stateuser
        --no-token         remove USERNAME  Do not consider pull request reviewed by this user
       --verbose          Turn on verbose output
     Do not use--debug a personal access token (PAT)
       Turn --verboseon debugging output
       --version          Print the version of this tool

- set -- set properties of a pull request
  Usage: Turngit onpr verboseset output[<ID>]
  Flags:
    -u,  --debugusername NAME   Username on host
    -r, --remote NAME     Name of remote, defaults to 'origin'
        --assignees LIST  Comma separated list  Turn on debugging outputof assignees
        --versiontitle MESSAGE   The title of the pull request
        --open            Set the pull request's state to open
 Print the version of this tool

- set --closed  set    properties of a pull request
Set the Usage: git pr set [<ID>]pull request's state to closed
  Flags:
     -u, --usernamebody    NAME   Username on host
   Set -r, --remote NAME     Name of remote, defaults to 'origin'
 the body of the pull request
        --no-draft       --assignees LISTMark the Commapull separatedrequest listas ofnot assigneesdraft
        --titleverbose    MESSAGE   The title ofTurn theon pullverbose requestoutput
        --opendebug           Turn on debugging Setoutput
   the pull request's state to open
--version        --closed Print the version of this tool

- show -- show Seta the pull request's state to closed
  Usage: git pr show [<ID>]
  Flags:
     -u, --bodyusername NAME  Username on host
    -r, --remote NAME Set  the bodyName of remote, thedefaults pullto request'origin'
        --no-drafttoken       Do Marknot theuse pulla requestpersonal asaccess nottoken draft(PAT)
        --verbose         Turn on verbose output
        --debug           Turn on debugging output
        --version         Print the version of this tool

- showsponsor -- showsponsor a pull request
  Usage: git pr showsponsor [<ID>]
  Flags:
    -u, --username NAME  Username on host
    -r, --remote NAME    Name of remote, defaults to 'origin'
        --no-token       Do not use a personal access token (PAT)
        --verbose        Turn on verbose output
        --debug          Turn on debugging output
        --version        Print the version of this tool

- sponsorsummary -- sponsoradd a summary to the commit message for the pull request
  Usage: git pr sponsorsummary [<ID>]
  Flags:
    -u, --username NAME  Username on host
    -r, --remoteremove NAME   Remove Namean of remote, defaults to 'origin'existing summary
        --verbose     --verbose   Turn on verbose output
        --debug          Turn on debugging output
        --version        Print the version of this tool

- test -- test a pull request
  Usage: git pr test [<ID>]
  Flags:
    -u, --username NAME  Username on host
    -r, --remote NAME    Name of remote, defaults to 'origin'
    -j, --job NAME       Name of a job
        --approve        Approve a test request
        --verbose        Turn on verbose output
        --debug          Turn on debugging output
        --version        Print the version of this tool

...