Skip to content

Instantly share code, notes, and snippets.

@joey-g
Last active August 7, 2018 16:06
Show Gist options
  • Save joey-g/f2ceba19c1b8e628ecab0aa9433554f1 to your computer and use it in GitHub Desktop.
Save joey-g/f2ceba19c1b8e628ecab0aa9433554f1 to your computer and use it in GitHub Desktop.
Remove all config/proj/sln/refresh files from PR diffs including Nettiers changes
$$('.file-info').forEach(fileInfo => {
const trimName = fileInfo.textContent.trim().toLowerCase();
const excludeSuffixes = ['.csproj', 'packages.config', 'app.config', 'production.config', 'qa.config', 'dll.refresh', '.sln', 'assemblyinfo.cs'];
const shouldDelete = excludeSuffixes.find(s => trimName.endsWith(s));
if (shouldDelete) { fileInfo.closest('.js-file').remove(); }
});
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment