fix: send merge base SHA when patch is present in depot ci run by 121watts · Pull Request #468 · depot/cli

@121watts

When depot ci run detects local changes and uploads a patch, the
RunRequest.Sha was set to git rev-parse HEAD — which is the local
commit SHA that doesn't exist on the remote. The server couldn't
resolve it, causing runs to fail with "no jobs".

Now we send the merge base SHA (which always exists on the remote)
when a patch is being applied, and only fall back to HEAD for
non-patch runs.

Made-with: Cursor

PedroGuerraPT

approved these changes Mar 26, 2026

@121watts 121watts deleted the watts/fix-ci-run-sha-with-patch branch

March 26, 2026 14:20