From cbd5f6aab9b25ce15505225038211eeff6533649 Mon Sep 17 00:00:00 2001 From: Zydney Ambat Date: Thu, 25 Jun 2026 07:47:14 +1000 Subject: [PATCH] Enhance base comparison with SHA resolution --- src/main.ts | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/main.ts b/src/main.ts index 8adb308..3fe0a85 100644 --- a/src/main.ts +++ b/src/main.ts @@ -153,7 +153,9 @@ async function getChangedFilesFromGit(base: string, head: string, initialFetchDe } const isBaseSha = git.isGitSha(base) - const isBaseSameAsHead = base === head + const baseSha = await git.resolveRefToSha(base) + const headSha = await git.resolveRefToSha(head) + const isBaseSameAsHead = base === head || baseSha === headSha // If base is commit SHA we will do comparison against the referenced commit // Or if base references same branch it was pushed to, we will do comparison against the previously pushed commit