Skip to content

Commit 876fc62

Browse files
authored
Merge pull request #468 from depot/watts/fix-ci-run-sha-with-patch
fix: send merge base SHA when patch is present in depot ci run
2 parents 0123dd9 + e6c9d66 commit 876fc62

1 file changed

Lines changed: 3 additions & 1 deletion

File tree

pkg/cmd/ci/run.go

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -213,7 +213,9 @@ This command is in beta and subject to change.`,
213213
WorkflowContent: []string{string(yamlBytes)},
214214
}
215215

216-
if headSHA, err := resolveHEAD(workflowDir); err == nil {
216+
if patch != nil {
217+
req.Sha = &patch.mergeBase
218+
} else if headSHA, err := resolveHEAD(workflowDir); err == nil {
217219
req.Sha = &headSHA
218220
}
219221

0 commit comments

Comments
 (0)