Skip to content

Commit

Permalink
chore: Add more logging.
Browse files Browse the repository at this point in the history
Closes #3
  • Loading branch information
joberstein committed Mar 4, 2023
1 parent 477040b commit a00c21b
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions src/validateCommits.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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.');
Expand Down

0 comments on commit a00c21b

Please sign in to comment.