Last active
August 29, 2015 14:07
-
-
Save cam8001/e9c9100e5937cc11d6f8 to your computer and use it in GitHub Desktop.
Bookmarklet - Convert github issue to bash-safe git branch name
This file contains 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
javascript:window.prompt('Branch name - copy to clipboard :)', 'issues/' + document.getElementsByClassName('gh-header-number')[0].innerHTML.replace(/#/, '') + '/' + document.getElementsByClassName('js-issue-title')[0].innerHTML.replace(/ /g, '-').toLowerCase()); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
If you want to create a local branch based on a github issue, but don't want to fork, good news!
Click to show, drag to bookmark bar, happy days :)