Skip to content

andyfeller/gh-commit2pr

Folders and files

NameName
Last commit message
Last commit date

Latest commit

ย 

History

2 Commits
ย 
ย 
ย 
ย 

Repository files navigation

gh-commit2pr

A gh extension to look up pull request(s) for commit SHA.

Quickstart

  1. gh extension install andyfeller/gh-commit2pr
  2. gh commit2pr
  3. Profit! ๐Ÿ’ฐ ๐Ÿ’ธ ๐Ÿค‘ ๐Ÿ’ธ ๐Ÿ’ฐ

Usage

$ gh commit2pr --help

Look up pull request(s) for commit SHA.

USAGE
  gh commit2pr [flags] [ <SHA> ]

FLAGS
  -a, --all                           List all pull requests associated with SHA; defaults to first
  -d, --debug                         Enable debugging
  -h, --help                          Display help usage
      --hostname=string               Hostname of the GitHub instance to authenticate with
  -R, --repo=[HOST/]OWNER/REPO        Select another repository using the [HOST/]OWNER/REPO format
  -w, --web                           Open pull request(s) in the browser

EXAMPLES
  # Look up pull request for HEAD
  $ gh commit2pr

  # Look up pull request for commit on OWNER/REPO
  $ gh commit2pr --repo=OWNER/REPO SHA

  # Look up pull request for HEAD and open web browser
  $ gh commit2pr --web

  # Look up all pull requests for HEAD
  $ gh commit2pr --all

About

GitHub CLI extension to look up pull request for SHAs

Topics

Resources

Stars

Watchers

Forks

Languages