Skip to content

Instantly share code, notes, and snippets.

@sunilmurali
Last active March 31, 2017 22:15
Show Gist options
  • Save sunilmurali/42e2a03d64ceb4ebe2a746c560fdfcc0 to your computer and use it in GitHub Desktop.
Save sunilmurali/42e2a03d64ceb4ebe2a746c560fdfcc0 to your computer and use it in GitHub Desktop.
Git commit get JIRA numbers
var a=document.getElementsByClassName('commit-message');var textSet=new Set(); for (i=0;i<a.length;i++) { var res=a[i].innerText.match(/KNDY-\d{4,}/g); if ( res) res.forEach(function(a) { textSet.add(a);}) } console.log([...textSet].join(','));
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment