forked from molecule-ai/molecule-core
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> |
||
|---|---|---|
| .. | ||
| workflows | ||