This commit is contained in:
Daniel Müller 2022-09-30 22:34:16 +09:00 committed by GitHub
commit 4f4fad0805
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
2 changed files with 4 additions and 4 deletions

4
dist/index.js vendored
View file

@ -7535,8 +7535,8 @@ function getSource(settings) {
} }
// Get commit information // Get commit information
const commitInfo = yield git.log1(); const commitInfo = yield git.log1();
// Log commit sha // Log commit information
yield git.log1("--format='%H'"); yield git.log1("--format=oneline");
// Check for incorrect pull request merge commit // Check for incorrect pull request merge commit
yield refHelper.checkCommitInfo(settings.authToken, commitInfo, settings.repositoryOwner, settings.repositoryName, settings.ref, settings.commit, settings.githubServerUrl); yield refHelper.checkCommitInfo(settings.authToken, commitInfo, settings.repositoryOwner, settings.repositoryName, settings.ref, settings.commit, settings.githubServerUrl);
} }

View file

@ -224,8 +224,8 @@ export async function getSource(settings: IGitSourceSettings): Promise<void> {
// Get commit information // Get commit information
const commitInfo = await git.log1() const commitInfo = await git.log1()
// Log commit sha // Log commit information
await git.log1("--format='%H'") await git.log1("--format=oneline")
// Check for incorrect pull request merge commit // Check for incorrect pull request merge commit
await refHelper.checkCommitInfo( await refHelper.checkCommitInfo(