Created
February 18, 2018 08:06
-
-
Save KangYoosam/c163813cb4641d1d8f5e62baabee3818 to your computer and use it in GitHub Desktop.
【メモ】コマンドラインからPull Requestを出すシェル関数 ref: https://qiita.com/kangyoosam/items/67f30ca49a275732349d
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# opens a PR from the current branch | |
function opr() { | |
parentBranch=$1 | |
currentBranch=`git branch | grep "*"` | |
repoName=$(git remote show origin -n | ruby -ne 'puts /^\s*Fetch.*:(.*).git/.match($_)[1] rescue nil') | |
open -a /Applications/Google\ Chrome.app https://github.com/${repoName/* /}/compare/${parentBranch/* /}...${br/* /} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment