renovate/lib/modules/platform/gitlab/schema.ts

10 lines
190 B
TypeScript

import { z } from 'zod';
export const LastPipelineId = z
.object({
last_pipeline: z.object({
id: z.number(),
}),
})
.transform(({ last_pipeline }) => last_pipeline.id);