From d9ff31f0e99f10907e2aac1ce789cbaa3fb4eb70 Mon Sep 17 00:00:00 2001 From: thedancingdeveloper <306930456+thedancingdeveloper@users.noreply.github.com> Date: Mon, 24 Aug 2026 02:20:28 +0000 Subject: [PATCH] ci: drop --depth=1 base fetch in migration-policy (shallow graft caused false positives) The base ref was fetched --depth=1 while policy.yml checks out full history; the shallow graft made origin/BASE..HEAD reappear historical base commits after an Update-branch merge, tripping the commit-metadata rule. Fetch the base full-depth (matching the already-fixed variant in rustnzb). --- ci/migration-policy.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/ci/migration-policy.sh b/ci/migration-policy.sh index 8d83e98..ca18f06 100644 --- a/ci/migration-policy.sh +++ b/ci/migration-policy.sh @@ -70,7 +70,7 @@ then fi if [[ -n "${GITHUB_BASE_REF:-}" ]]; then - git fetch --no-tags --depth=1 origin "$GITHUB_BASE_REF" >/dev/null 2>&1 || true + git fetch --no-tags origin "$GITHUB_BASE_REF" >/dev/null 2>&1 || true base="origin/$GITHUB_BASE_REF" commits="$(git rev-list --reverse "$base..HEAD" 2>/dev/null || git rev-list --reverse HEAD~1..HEAD 2>/dev/null || git rev-list --reverse HEAD)" elif [[ "${GITHUB_EVENT_NAME:-}" == push && "${GITHUB_BEFORE:-}" != 0000000000000000000000000000000000000000 ]]; then