Skip to content

Commit

Permalink
[meta] since: hide deps/dev deps commits from the "since" output
Browse files Browse the repository at this point in the history
  • Loading branch information
ljharb committed Sep 17, 2021
1 parent e8673c2 commit 3d286a4
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion since.js
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ const packages = (process.argv.length > 2 ? [process.argv[2]] : glob.sync('*', {
packages.forEach((pkg) => {
const tag = `${pkg.name === 'docs' ? 'enzyme' : pkg.name}@${pkg.version}`;
const dir = path.join(packagesDir, pkg.name);
const logArgs = ['--no-pager', 'log', '--oneline', `${tag}..HEAD`, dir, ':!**/.eslintrc'].concat(pkg.name === 'enzyme' ? docsDir : []);
const logArgs = ['--no-pager', 'log', '--oneline', '--grep=\\[\\(dev \\)\\?deps\\]', '--invert-grep', `${tag}..HEAD`, dir, ':!**/.eslintrc'].concat(pkg.name === 'enzyme' ? docsDir : []);
const log = spawnSync('git', logArgs, { stdio: 'pipe' });
if (log.stdout.length > 0 || log.stderr.length > 0) {
console.log(tag);
Expand Down

0 comments on commit 3d286a4

Please sign in to comment.