Created
August 4, 2014 15:58
-
-
Save dy-dx/0640e73298ab756488ca to your computer and use it in GitHub Desktop.
Bookmarklet for generating a "[Fixes #XXXXXXXX #YYYYYYYY]" string for pull requests that reference Pivotal story IDs.
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:(function() { | |
var ids = _.uniq($('.visible .selected').closest('.story').map(function() { return this.className.match(/story_(\d+)/)[1]; })); | |
var prString = '[Fixes #' + ids.join(' #') + ']'; | |
window.prompt('Copy to clipboard:', prString); | |
})(); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment