feat: add CI check status to workspace sidebar and hover card

Extend the existing gh pr view call with statusCheckRollup and
reviewDecision fields so check data arrives in a single request.
The workspace row now shows an aggregate check icon (green checkmark,
red X, or amber dot) next to the PR badge, and the hover card lists
each individual check with its status and a link to details.
This commit is contained in:
Mohamed Boudra
2026-04-06 10:54:56 +07:00
parent eabd561fde
commit f75e28a77f
5 changed files with 282 additions and 1 deletions
+11
View File
@@ -2151,6 +2151,17 @@ const CheckoutPrStatusSchema = z.object({
baseRefName: z.string(),
headRefName: z.string(),
isMerged: z.boolean(),
checks: z
.array(
z.object({
name: z.string(),
status: z.string(),
url: z.string().nullable(),
}),
)
.optional(),
checksStatus: z.string().optional(),
reviewDecision: z.string().nullable().optional(),
});
export const CheckoutPrStatusResponseSchema = z.object({