fix(payload_api, git_diff): Accessing correct property in payload and Replacing --quiet with --no-patch in git diff (#1934)

This commit is contained in:
Aravind 2024-02-18 04:01:02 +05:30 committed by GitHub
parent 68bd4537bd
commit e3cac49049
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
2 changed files with 2 additions and 2 deletions

View file

@ -429,7 +429,7 @@ export const getSHAForPullRequestEvent = async (
if ( if (
!github.context.payload.pull_request?.base?.ref || !github.context.payload.pull_request?.base?.ref ||
github.context.payload.head?.repo?.fork === 'true' github.context.payload.pull_request?.head?.repo?.fork === true
) { ) {
diff = '..' diff = '..'
} }

View file

@ -908,7 +908,7 @@ export const canDiffCommits = async ({
} else { } else {
const {exitCode, stderr} = await exec.getExecOutput( const {exitCode, stderr} = await exec.getExecOutput(
'git', 'git',
['diff', '--quiet', sha1, sha2], ['diff', '--no-patch', sha1, sha2],
{ {
cwd, cwd,
ignoreReturnCode: true, ignoreReturnCode: true,