0
0
mirror of https://github.com/renovatebot/renovate.git synced 2024-12-22 21:48:32 +00:00
renovatebot_renovate/lib/modules/platform/gitlab/schema.ts
Alessandro Manno f549a868fd
fix(platform/gitlab): double pipelines issue (#24500)
Co-authored-by: Sergei Zharinov <zharinov@users.noreply.github.com>
Co-authored-by: Rhys Arkins <rhys@arkins.net>
2023-10-16 06:58:23 +00:00

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);