diff --git a/dist/index.js b/dist/index.js index d1ed5f9..56cfa3f 100644 --- a/dist/index.js +++ b/dist/index.js @@ -7535,8 +7535,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, settings.githubServerUrl); } diff --git a/src/git-source-provider.ts b/src/git-source-provider.ts index 48f20da..0f6f598 100644 --- a/src/git-source-provider.ts +++ b/src/git-source-provider.ts @@ -224,8 +224,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(