Created
February 25, 2016 16:18
-
-
Save steve-ross/047bd69a912a9ad3da73 to your computer and use it in GitHub Desktop.
if you name your github branches ending in #123 this will open the issue on github (using hub)
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
function _git_branch_issue_number | |
echo (git symbolic-ref HEAD ^/dev/null | sed -e 's/.*#//') | |
end | |
function git-issue | |
set -l issue_number (_git_branch_issue_number) | |
git browse -- issues/$issue_number | |
end |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Install hub first and alias it to 'git'
brew install hub