From 5ca3fc7cbe42f4d4e35d3a79da480c115b20f530 Mon Sep 17 00:00:00 2001 From: Trask Stalnaker Date: Thu, 13 Jan 2022 12:01:52 -0800 Subject: [PATCH] Fix failure when PR is behind main --- src/utils.ts | 9 --------- 1 file changed, 9 deletions(-) diff --git a/src/utils.ts b/src/utils.ts index c4aff76..acfaeef 100644 --- a/src/utils.ts +++ b/src/utils.ts @@ -114,15 +114,6 @@ export async function getChangedFiles(client: Client, base: string, head: string ) } - // Ensure that the head commit is ahead of the base commit. - if (compareResponse.data.status !== 'ahead') { - throw new Error( - `The head commit for this ${github.context.eventName} event is not ahead of the base commit. ` + - "Please submit an issue on this action's GitHub repo." - ) - } - - const changedFiles = compareResponse.data.files; if (!changedFiles) {