diff --git a/apps/api/src/routes/api/v1/applications/handlers.ts b/apps/api/src/routes/api/v1/applications/handlers.ts index 26b0d2bb9..cb0bf38fe 100644 --- a/apps/api/src/routes/api/v1/applications/handlers.ts +++ b/apps/api/src/routes/api/v1/applications/handlers.ts @@ -451,6 +451,7 @@ export async function deployApplication(request: FastifyRequest): Promi message: 'Queued. Thank you!' }; } else if (githubEvent === 'pull_request') { - const pullmergeRequestId = body.number; + const pullmergeRequestId = body.number.toString(); const pullmergeRequestAction = body.action; const sourceBranch = body.pull_request.head.ref.includes('/') ? body.pull_request.head.ref.split('/')[2] : body.pull_request.head.ref; if (!allowedActions.includes(pullmergeRequestAction)) { diff --git a/apps/ui/src/routes/applications/[id]/_Secret.svelte b/apps/ui/src/routes/applications/[id]/_Secret.svelte index 12d69db19..780dea726 100644 --- a/apps/ui/src/routes/applications/[id]/_Secret.svelte +++ b/apps/ui/src/routes/applications/[id]/_Secret.svelte @@ -57,11 +57,12 @@ message: 'Secret added.', type: 'success' }); - } - addToast({ + } else { + addToast({ message: 'Secret updated.', type: 'success' }); + } dispatch('refresh'); } catch (error) { console.log(error);