Skip to content

Commit

Permalink
logs: log correct number of branch files to commit
Browse files Browse the repository at this point in the history
  • Loading branch information
rarkins committed Jun 7, 2020
1 parent 83d702e commit c3a09c0
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion lib/workers/branch/commit.ts
Expand Up @@ -26,7 +26,8 @@ export async function commitFilesToBranch(
logger.debug(`No files to commit`);
return null;
}
logger.debug(`${updatedFiles.length} file(s) to commit`);
const fileLength = [...new Set(updatedFiles.map((file) => file.name))].length;
logger.debug(`${fileLength} file(s) to commit`);
// istanbul ignore if
if (config.dryRun) {
logger.info('DRY-RUN: Would commit files to branch ' + config.branchName);
Expand Down

0 comments on commit c3a09c0

Please sign in to comment.