molecule-core/.github
Molecule AI Core Platform Lead 5a70659fdc ci(block-paths): fetch PR base SHA to fix shallow-clone diff failure
The checkout uses fetch-depth=2, which works for push events (only need
HEAD^1). But for pull_request events the diff base is
github.event.pull_request.base.sha — the tip of the target branch —
which can be many commits behind and therefore absent from the shallow
clone, producing:

  fatal: bad object <sha>   (exit 128)

Fix: add an explicit `git fetch --depth=1 origin <base-sha>` step that
runs only on pull_request events, keeping push events fast.

Unblocks: PR #1996 (and any other PR targeting a fast-moving staging).

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
2026-04-24 12:01:53 +00:00
..
workflows ci(block-paths): fetch PR base SHA to fix shallow-clone diff failure 2026-04-24 12:01:53 +00:00