Skip to content

Instantly share code, notes, and snippets.

@calebwoods
Last active January 3, 2016 12:59
Show Gist options
  • Star 1 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save calebwoods/8466688 to your computer and use it in GitHub Desktop.
Save calebwoods/8466688 to your computer and use it in GitHub Desktop.
Bookmarklet to fill custom merge message for Github Pull Request. Format used by @RoleModel
javascript:(function () {
var mergeMessage = $('.merge-commit-message');
if (mergeMessage.length > 0) {
prNum = location.pathname.split('/').slice(-1)[0];
var prTitle = $('.discussion-topic-title').text();
mergeMessage.val('' + prTitle + ' [KB #NUMBER] (GH #' + prNum + ')');
}
})();
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment