Description
git-pr info
shows information about a pull request, such as the title, author, assignees, reviewers, etc. The flag --no-decoration
can be used to turn off additional text printed by git-pr info
which can be useful for scripting.
Usage
Code Block |
---|
$ git pr info -h
usage: git-pr [options] [<ID>]
-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
--labels Show the labels for the pull request
--verbose Turn on verbose output
--debug Turn on debugging output
--version Print the version of this tool
-h, --help Show this help text |
Examples
Show the title, author, reviewers and URL for pull request with id 756:
Code Block |
---|
$ git pr info --title --author --reviewers --url 756
URL: https://github.com/openjdk/skara/pull/756
Title: 439: Improve command filtering when bridging mails
Author: rwestberg
Reviewers: edvbld |
Configuration
All flags can be configured to be on by default. For example, to configure git-pr info
to always show the title and url, run the following:
Code Block |
---|
$ git config --global pr.info.title true
$ git config --global pr.info.url true |
Source
See GitPrInfo.java.
Overview
Content Tools
ThemeBuilder