Skip to content

Commit

Permalink
Restrict lookup to ".md" files in issues folder
Browse files Browse the repository at this point in the history
  • Loading branch information
tidoust authored and dontcallmedom committed Aug 23, 2024
1 parent 336f48d commit 18be54c
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/reporting/file-issue-for-review.js
Original file line number Diff line number Diff line change
Expand Up @@ -106,9 +106,9 @@ Usage notes for some of the options:
console.log(`- current branch: ${currentBranch}`);

console.log('How many issue files ought to be reported?');
const toadd = execSync('git diff --name-only --diff-filter=d issues', execParams).trim().split('\n');
const toadd = execSync('git diff --name-only --diff-filter=d issues/*.md', execParams).trim().split('\n');
console.log(`- nb issue files to add/update: ${toadd.length}`);
const todelete = execSync('git diff --name-only --diff-filter=D issues', execParams).trim().split('\n');
const todelete = execSync('git diff --name-only --diff-filter=D issues/*.md', execParams).trim().split('\n');
console.log(`- nb issue files to delete: ${todelete.length}`);
const toreport = toadd.map(name => { return { action: 'add', filename: name }; })
.concat(todelete.map(name => { return { action: 'delete', filename: name }; }))
Expand Down

0 comments on commit 18be54c

Please sign in to comment.