• Home
    • View
    • Login
    This page
    • Normal
    • Export PDF
    • Export Word
    • Attachments
    • Page Information

    Loading...
  1. Dashboard
  2. Skara
  3. Skara
  4. CLI Tools
  5. git-pr
  6. info

info

  • Created by Erik Helin, last modified on Sep 04, 2020

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

$ 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:

$ 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:

$ git config --global pr.info.title true
$ git config --global pr.info.url true

Source

See GitPrInfo.java.

Overview
Content Tools
ThemeBuilder
  • No labels

Terms of Use
• License: GPLv2
• Privacy • Trademarks • Contact Us

Powered by a free Atlassian Confluence Open Source Project License granted to https://www.atlassian.com/software/views/opensource-community-additional-license-offer. Evaluate Confluence today.

  • Kolekti ThemeBuilder Powered by Atlassian Confluence 8.5.21
  • Kolekti ThemeBuilder printed.by.atlassian.confluence
  • Report a bug
  • Atlassian News
Atlassian
Kolekti ThemeBuilder EngineAtlassian Confluence
{"serverDuration": 174, "requestCorrelationId": "0a911df2bc9193e7"}