できること
現在のローカルブランチから引数で与えたブランチへGithub上にPull Requestを出す。
使用例
opr master
内容
# 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/* /}
}