From 6501b44c4026e4675af08f68670c019bb51dabc8 Mon Sep 17 00:00:00 2001 From: Lubos Date: Mon, 3 Mar 2025 00:55:44 +0000 Subject: [PATCH] chore: update client --- src/client/types.gen.ts | 24 ++++++++++++++++++++---- src/upload.ts | 3 +-- 2 files changed, 21 insertions(+), 6 deletions(-) diff --git a/src/client/types.gen.ts b/src/client/types.gen.ts index 8656497..984149e 100644 --- a/src/client/types.gen.ts +++ b/src/client/types.gen.ts @@ -33,7 +33,8 @@ export type PostV1SpecificationsData = { branch_base?: string ci_platform?: string commit_sha?: string - dry_run?: boolean | null + default_branch?: string + dry_run?: string event_name?: string job?: string ref?: string @@ -55,19 +56,34 @@ export type PostV1SpecificationsErrors = { * Unauthorized */ 401: { - message: string + error: { + message: string + request_id: string + status: number + timestamp: string + } } /** * Forbidden */ 403: { - message: string + error: { + message: string + request_id: string + status: number + timestamp: string + } } /** * Content Too Large */ 413: { - message: string + error: { + message: string + request_id: string + status: number + timestamp: string + } } } diff --git a/src/upload.ts b/src/upload.ts index bef7de4..fbea70c 100644 --- a/src/upload.ts +++ b/src/upload.ts @@ -78,9 +78,8 @@ export async function upload({ branch_base: process.env.GITHUB_BASE_REF, ci_platform: 'github', commit_sha: commitSha, - // @ts-expect-error default_branch: defaultBranch, - dry_run: dryRun, + dry_run: dryRun ? 'true' : 'false', event_name: process.env.GITHUB_EVENT_NAME, job: process.env.GITHUB_JOB, ref: process.env.GITHUB_REF,