From ae466a5fd03c788bb1395b625ee3e02fa8b8abfb Mon Sep 17 00:00:00 2001 From: Trask Stalnaker Date: Tue, 11 Apr 2023 08:27:22 -0700 Subject: [PATCH] Cherry pick dyladan/component-owners#10 (#12) Co-authored-by: Daniel Dyla --- src/utils.ts | 9 --------- 1 file changed, 9 deletions(-) diff --git a/src/utils.ts b/src/utils.ts index 2ad996e..68c5fd8 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) {