mirror of
https://github.com/tj-actions/changed-files
synced 2024-09-18 23:10:39 +02:00
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:
parent
68bd4537bd
commit
e3cac49049
|
@ -429,7 +429,7 @@ export const getSHAForPullRequestEvent = async (
|
|||
|
||||
if (
|
||||
!github.context.payload.pull_request?.base?.ref ||
|
||||
github.context.payload.head?.repo?.fork === 'true'
|
||||
github.context.payload.pull_request?.head?.repo?.fork === true
|
||||
) {
|
||||
diff = '..'
|
||||
}
|
||||
|
|
|
@ -908,7 +908,7 @@ export const canDiffCommits = async ({
|
|||
} else {
|
||||
const {exitCode, stderr} = await exec.getExecOutput(
|
||||
'git',
|
||||
['diff', '--quiet', sha1, sha2],
|
||||
['diff', '--no-patch', sha1, sha2],
|
||||
{
|
||||
cwd,
|
||||
ignoreReturnCode: true,
|
||||
|
|
Loading…
Reference in a new issue