mirror of
https://github.com/getpaseo/paseo.git
synced 2026-07-29 12:01:31 +00:00
Fix commit-aware PR resolution across forges
This commit is contained in:
@@ -1762,9 +1762,9 @@ const CheckoutCheckDetailsRequestPayloadSchema = z.object({
|
||||
checkRunId: z.number().int().positive().optional(),
|
||||
workflowRunId: z.number().int().positive().optional(),
|
||||
// Permanent forge-routing field, optional because only some forges need it:
|
||||
// GitLab routes the check-details fetch to the change request's head pipeline
|
||||
// by iid, so a fork/detached MR pipeline (which lives in the source project,
|
||||
// not the checkout's target project) resolves correctly. GitHub ignores it.
|
||||
// GitLab routes check details to the MR's head pipeline; Gitea-family adapters
|
||||
// resolve the PR head SHA by number, including after merge/close. GitHub
|
||||
// ignores it.
|
||||
changeRequestNumber: z.number().int().positive().optional(),
|
||||
requestId: z.string(),
|
||||
});
|
||||
|
||||
Reference in New Issue
Block a user