Is there a way (from the command line) to list the names of all files changed in a PR in Git/GitHub? This would be used to find what tests need to be run in a Travis CI buil
Chrome console...
Note: This will break if Github changes the tags/classes/IDs in the page.
const fileElems = document.querySelectorAll('#files div.file-info a.link-gray-dark');
const filePaths = [];
for (let a of fileElems) {
filePaths.push(a.title);
}
const filePathsStr = filePaths.join('\n');
console.log(filePathsStr);
copy(filePathsStr);
console.log('Copied to the clipboard as well