0
0
Fork 0
mirror of https://github.com/renovatebot/renovate.git synced 2025-01-11 13:48:55 +00:00
renovatebot_renovate/lib/modules/datasource/gitea-releases/schema.ts
Michael Kriese d3da0bcef0
feat(changelog): support gitea changelogs (#24144)
Co-authored-by: Sebastian Poxhofer <secustor@users.noreply.github.com>
2023-08-31 09:41:39 +00:00

11 lines
271 B
TypeScript

import { z } from 'zod';
export const ReleaseSchema = z.object({
name: z.string(),
tag_name: z.string(),
body: z.string(),
prerelease: z.boolean(),
published_at: z.string().datetime({ offset: true }),
});
export const ReleasesSchema = z.array(ReleaseSchema);