You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Fix shallow merge-base handling for component fixtures
Increase the history depth to 150 and skip screenshot comparison with an explicit warning if the merge base is still unavailable.
Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
Copilot-Session: 7defd909-5470-4f45-97dc-09706d9c6570
if ! BASE_SHA=$(git merge-base "$EVENT_SHA" "$TARGET_REF"); then
189
+
echo "::warning::Unable to find a merge base between $EVENT_SHA and $TARGET_REF. The depth-150 shallow history may not contain their common ancestor; skipping screenshot comparison."
190
+
exit 0
191
+
fi
189
192
else
190
193
# For push events, diff against the parent commit.
0 commit comments