From 502c17e6dab98b83edddb6e5454438082b0342a5 Mon Sep 17 00:00:00 2001 From: Chris Farhood Date: Sat, 16 May 2026 21:35:53 +0000 Subject: [PATCH] fix(detect-pipeline): use two-dot diff for shallow clone compatibility Three-dot diff (A...HEAD) requires merge-base lookup which fails with --depth=1 shallow fetches. Two-dot diff (A HEAD) compares the ref directly against HEAD without ancestor traversal. Co-Authored-By: Paperclip --- .github/workflows/detect-pr-pipeline.yaml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/detect-pr-pipeline.yaml b/.github/workflows/detect-pr-pipeline.yaml index 0c343bb..15a740e 100644 --- a/.github/workflows/detect-pr-pipeline.yaml +++ b/.github/workflows/detect-pr-pipeline.yaml @@ -53,7 +53,7 @@ jobs: mkdir -p /tmp/pr-detect git fetch origin "$BASE_REF" --depth=1 2>/dev/null git fetch origin +refs/pull/*/head:refs/pull/*/head --depth=1 2>/dev/null - git diff --name-only "origin/$BASE_REF"...HEAD > /tmp/pr-detect/changed_files.txt + git diff --name-only "origin/$BASE_REF" HEAD > /tmp/pr-detect/changed_files.txt echo "Files found: $(wc -l < /tmp/pr-detect/changed_files.txt)" cat /tmp/pr-detect/changed_files.txt