diff --git a/dist/index.js b/dist/index.js index c7bc695..17f170b 100644 --- a/dist/index.js +++ b/dist/index.js @@ -7478,8 +7478,8 @@ function getSource(settings) { } // Get commit information const commitInfo = yield git.log1(); - // Log commit sha - yield git.log1("--format='%H'"); + // Log commit information + yield git.log1("--format=oneline"); // Check for incorrect pull request merge commit yield refHelper.checkCommitInfo(settings.authToken, commitInfo, settings.repositoryOwner, settings.repositoryName, settings.ref, settings.commit); } diff --git a/src/git-source-provider.ts b/src/git-source-provider.ts index 545a7a3..fd3465d 100644 --- a/src/git-source-provider.ts +++ b/src/git-source-provider.ts @@ -222,8 +222,8 @@ export async function getSource(settings: IGitSourceSettings): Promise { // Get commit information const commitInfo = await git.log1() - // Log commit sha - await git.log1("--format='%H'") + // Log commit information + await git.log1("--format=oneline") // Check for incorrect pull request merge commit await refHelper.checkCommitInfo(