Skip to content
Snippets Groups Projects
Commit c3a09c0c authored by Rhys Arkins's avatar Rhys Arkins
Browse files

logs: log correct number of branch files to commit

parent 83d702e1
No related branches found
No related tags found
No related merge requests found
......@@ -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);
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment