Fix commit-aware PR resolution across forges

This commit is contained in:
nllptrx
2026-07-18 14:21:10 +02:00
committed by GitHub
parent ffe76a7e57
commit c97f823236
16 changed files with 879 additions and 122 deletions

View File

@@ -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(),
});