From a00c21b032a284d86799b06469d016b3f2a6acdc Mon Sep 17 00:00:00 2001 From: Jesse Oberstein <7157500+joberstein@users.noreply.github.com> Date: Sat, 4 Mar 2023 00:12:01 -0500 Subject: [PATCH] chore: Add more logging. Closes #3 --- src/validateCommits.ts | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/src/validateCommits.ts b/src/validateCommits.ts index 6d3ae8a2..ea9d1c3c 100644 --- a/src/validateCommits.ts +++ b/src/validateCommits.ts @@ -30,9 +30,10 @@ const getCommitFromRange = ( try { const command = `git rev-list ${source}..${destination} | tail -n 1`; console.log(command); - const result = execSync(command, options).toString().trim(); - console.log(`Result: ${result}`); - return result; + const result = execSync(command, options); + const output = result.toString().trim(); + console.log(`Result: --- ${output} ---`); + return output; } catch { console.log("Failed getting initial commit"); setFailed('Failed to get initial commit in the given range.');