0
0

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?

More than 3 years have passed since last update.

【github/gh/gh 版】commit id から プルリクエスト(PullRequest)を特定して ウェブブラウザで pr を開くやつ。

Last updated at Posted at 2021-02-18

commit id から プルリクエスト(PullRequest)を特定して ウェブブラウザ で 開くやつ。

github/gh/gh 版

hub の代わりに gh を使うやつ

.gitconfig

.gitconfig
[alias]
        blamepr = "!f() { gh pr view -w `git log --merges --oneline --reverse --ancestry-path $1...master | grep 'Merge pull request #' | head -n 1 | cut -f5 -d' ' | sed -e 's%#%%'`; }; f"

使い方

git blamepr ${COMMIT_ID}
改造元 (hubで開く):

0
0
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
0
0

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?