Skip to content
This repository has been archived by the owner on Nov 24, 2023. It is now read-only.

Commit

Permalink
Use merge_group.base and head sha
Browse files Browse the repository at this point in the history
  • Loading branch information
espenalb committed Nov 24, 2023
1 parent a58c399 commit 037c94b
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions src/utils/misc.ts
Original file line number Diff line number Diff line change
Expand Up @@ -75,5 +75,12 @@ export const getDiffInfo = async(octokit: Octokit, context: Context): Promise<Di
}, context);
}

if (context.payload.merge_group) {
return {
base: context.payload.merge_group.base_sha,
head: context.payload.merge_group.head_sha,
};
}

return getDiffInfoForPush(octokit, context);
};

0 comments on commit 037c94b

Please sign in to comment.