Skip to content

Instantly share code, notes, and snippets.

@pauldruziak
Created January 14, 2011 08:24
Show Gist options
  • Select an option

  • Save pauldruziak/779358 to your computer and use it in GitHub Desktop.

Select an option

Save pauldruziak/779358 to your computer and use it in GitHub Desktop.
Commit message from pivotaltracker
//[#12345] FEATURE: Add Google Maps to user profiles
//To quickly generate such commit messages, add a new link “Commit” to your bookmarks and use the following Javascript as the link URL:
javascript:(function() { var story = document.getElementsByClassName('underEdit')[0]; if (story) { var title = story.getElementsByClassName('titleInputField')[0].value; var id = story.getElementsByClassName('storyId')[0].innerHTML; var type = story.getElementsByClassName('storyDetailsField')[0].value.toUpperCase(); prompt('Your commit message:', '[#' + id + '] ' + type + ': ' + title); } else { alert('Open a story in Pivotal Tracker and run the bookmarklet again.'); }})();
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment