Skip to content

Instantly share code, notes, and snippets.

@dy-dx
Created August 4, 2014 15:58
Show Gist options
  • Save dy-dx/0640e73298ab756488ca to your computer and use it in GitHub Desktop.
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.
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