Skip to content

Instantly share code, notes, and snippets.

@chrisbodhi
Created February 27, 2016 06:39
Show Gist options
  • Select an option

  • Save chrisbodhi/4100a458770ab48bdb71 to your computer and use it in GitHub Desktop.

Select an option

Save chrisbodhi/4100a458770ab48bdb71 to your computer and use it in GitHub Desktop.
var $messages = $('.commit-message code a.message');
var version = $messages
.filter((i, mess) => mess.text.includes('Bump v'))
.text()
.split(' ')[1]
.match(/[\d|\.]/g)
.join('');
var sites = $messages
.filter((i, message) => message.innerText.includes('impossibleventures/'))
.map((i, pr) => pr.innerText.split('/')[1].split('-')[0].replace('.com', ''))
.toArray()
.sort()
.join(', ');
console.log(`${version}: Fixes ${sites}`);
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment