Skip to content

Instantly share code, notes, and snippets.

@dot
Last active October 7, 2016 10:06
Show Gist options
  • Save dot/8347592 to your computer and use it in GitHub Desktop.
Save dot/8347592 to your computer and use it in GitHub Desktop.
github release note geneartor
javascript:(function() {
alert(Array.from(document.querySelectorAll('.commit-message .issue-link')).map(
function(i) {
var _i = i.closest('.commit-message');
if (_i.textContent.trim().match(/^Merge pull request/)) {
return {num: i.textContent, title: _i.querySelector('.commit-desc').textContent};
}
}).filter(data => data !== undefined).sort(function(a, b) { return a.num >= b.num ? 1: -1}).map(function(i) {
return "* " + i.num + " " + i.title.replace(/\[\#(\d+)\]/g, "([$1](https://www.pivotaltracker.com/story/show/$1))");
}).join("\n"));
})();
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment