Last active
January 3, 2019 21:38
-
-
Save rcline/00c4935f435a0e3c22064ecb0a56e05a to your computer and use it in GitHub Desktop.
Run on the PRs file view page to get a list of monorepo packages that where edited.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
((doc, log) => { | |
el = doc.getElementsByClassName("link-gray-dark"); | |
pkgs = []; | |
Object.keys(el).map((c) => { | |
const split = el[c].innerText.split('/'); | |
if (split[0] == 'packages') { | |
pkgs.push( | |
`@sstk/${split[1]}` | |
) | |
} | |
}); | |
pkgs = pkgs.filter(function(item, pos, self) { | |
return self.indexOf(item) == pos; | |
}); | |
log(pkgs.length); | |
log(`(${pkgs.join(', ')})`); | |
})(document, console.log); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment