From 43769d0c7f98e461ab816d0e7b2213f9b2fe1a0c Mon Sep 17 00:00:00 2001 From: thedancingdeveloper <306930456+thedancingdeveloper@users.noreply.github.com> Date: Mon, 24 Aug 2026 02:20:18 +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 7ac3b53..f5574a6 100755 --- a/ci/migration-policy.sh +++ b/ci/migration-policy.sh @@ -29,7 +29,7 @@ if [[ -n "$workflow_matches" ]]; 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}" if git rev-parse --verify "$base" >/dev/null 2>&1; then commits="$(git rev-list --reverse "$base..HEAD")"