mirror of
https://github.com/actions/checkout.git
synced 2026-10-31 03:14:03 +00:00
run prettier formatting
This commit is contained in:
1 parent
12a489776f
commit
c12eb249cb
1 file changed
+1
-2
@@ -58,8 +58,7 @@ export function assertSafePrCheckout(input: IUnsafePrCheckoutInput): void {
|
|||||||
// if the resolved input points to the fork PR sha we have in the payload
|
// if the resolved input points to the fork PR sha we have in the payload
|
||||||
const repositoryMatchesPrHead =
|
const repositoryMatchesPrHead =
|
||||||
typeof prHeadRepoFullName === 'string' &&
|
typeof prHeadRepoFullName === 'string' &&
|
||||||
input.qualifiedRepository.toLowerCase() ===
|
input.qualifiedRepository.toLowerCase() === prHeadRepoFullName.toLowerCase()
|
||||||
prHeadRepoFullName.toLowerCase()
|
|
||||||
const refMatchesPullPattern = PR_REF_PATTERN.test(input.ref)
|
const refMatchesPullPattern = PR_REF_PATTERN.test(input.ref)
|
||||||
const commitMatchesPrHeadSha =
|
const commitMatchesPrHeadSha =
|
||||||
!!input.commit && prShas.includes(input.commit.toLowerCase())
|
!!input.commit && prShas.includes(input.commit.toLowerCase())
|
||||||
|
|||||||
Reference in new issue
Block a user