From 017fbd6dceb57507dc820b02b0b42e5c36920210 Mon Sep 17 00:00:00 2001 From: Federico Grandi Date: Sun, 23 Jan 2022 23:13:35 +0100 Subject: [PATCH] chore: lint source code --- src/main.ts | 11 +++++++++-- 1 file changed, 9 insertions(+), 2 deletions(-) diff --git a/src/main.ts b/src/main.ts index dde5d56..8f7f420 100644 --- a/src/main.ts +++ b/src/main.ts @@ -31,9 +31,16 @@ core.info(`Running in ${baseDir}`) core.info('> Checking for uncommitted changes in the git working tree...') const changedFiles = (await git.diffSummary(['--cached'])).files.length // continue if there are any changes or if the allow-empty commit argument is included - if (changedFiles > 0 || matchGitArgs(getInput('commit') || '').includes('--allow-empty')) { + if ( + changedFiles > 0 || + matchGitArgs(getInput('commit') || '').includes('--allow-empty') + ) { core.info(`> Found ${changedFiles} changed files.`) - core.debug(`--allow-empty argument detected: ${matchGitArgs(getInput('commit') || '').includes('--allow-empty')}`) + core.debug( + `--allow-empty argument detected: ${matchGitArgs( + getInput('commit') || '' + ).includes('--allow-empty')}` + ) await git .addConfig('user.email', getInput('author_email'), undefined, log)