An open-source, self-hostable PaaS alternative to Vercel, Heroku & Netlify that lets you easily deploy static sites, databases, full-stack applications and 360+ one-click services on your own servers.
PHP coolifydatabasesdeploymentdockerdocker-composeinertiajslaravelmariadbmysqlnextjsnodejsphppostgresredisself-hostedself-hostingserverstatic-sitesveltesvelte5
fixes
Andras Bacsaic02ea4289e40
diff --git a/apps/api/src/routes/webhooks/github/handlers.ts b/apps/api/src/routes/webhooks/github/handlers.tsindex d8b4e7be8d..74d53eceff 100644--- a/apps/api/src/routes/webhooks/github/handlers.ts+++ b/apps/api/src/routes/webhooks/github/handlers.ts@@ -82,7 +82,7 @@ export async function gitHubEvents(request: FastifyRequest<GitHubEvents>): Promibranch = body.ref.includes('/') ? body.ref.split('/')[2] : body.ref;} else if (githubEvent === 'pull_request') {projectId = body.pull_request.base.repo.id;- branch = body.pull_request.base.ref.includes('/') ? body.pull_request.base.ref.split('/')[2] : body.pull_request.base.ref;+ branch = body.pull_request.head.ref.includes('/') ? body.pull_request.head.ref.split('/')[2] : body.pull_request.head.ref;}if (!projectId || !branch) {throw { status: 500, message: 'Cannot parse projectId or branch from the webhook?!' }@@ -154,7 +154,7 @@ export async function gitHubEvents(request: FastifyRequest<GitHubEvents>): Promi} else if (githubEvent === 'pull_request') {const pullmergeRequestId = body.number;const pullmergeRequestAction = body.action;- const sourceBranch = body.pull_request.base.ref.includes('/') ? body.pull_request.base.ref.split('/')[2] : body.pull_request.base.ref;+ const sourceBranch = body.pull_request.head.ref.includes('/') ? body.pull_request.head.ref.split('/')[2] : body.pull_request.head.ref;if (!allowedActions.includes(pullmergeRequestAction)) {throw { status: 500, message: 'Action not allowed.' }}diff --git a/apps/api/src/routes/webhooks/github/types.ts b/apps/api/src/routes/webhooks/github/types.tsindex a8f5d3817d..1c6f6f9f49 100644--- a/apps/api/src/routes/webhooks/github/types.ts+++ b/apps/api/src/routes/webhooks/github/types.ts@@ -18,6 +18,12 @@ export interface GitHubEvents {repo: {id: string,}+ },+ head: {+ ref: string,+ repo: {+ id: string,+ }}}}diff --git a/apps/ui/src/routes/destinations/index.svelte b/apps/ui/src/routes/destinations/index.svelteindex a2b7900ae5..cc6e59cdc5 100644--- a/apps/ui/src/routes/destinations/index.svelte+++ b/apps/ui/src/routes/destinations/index.svelte@@ -94,9 +94,9 @@{#if destination.remoteEngine}<svgxmlns="http://www.w3.org/2000/svg"- class="absolute top-0 left-9 -m-4 h-6 w-6 text-sky-600 rotate-45"+ class="absolute top-0 left-9 -m-4 h-6 w-6 text-sky-500 rotate-45"viewBox="0 0 24 24"- stroke-width="1.5"+ stroke-width="3"stroke="currentColor"fill="none"stroke-linecap="round"@@ -154,9 +154,9 @@{#if destination.remoteEngine}<svgxmlns="http://www.w3.org/2000/svg"- class="absolute top-0 left-10 -m-4 h-6 w-6 text-sky-600"+ class="absolute top-0 left-9 -m-4 h-6 w-6 text-sky-500 rotate-45"viewBox="0 0 24 24"- stroke-width="1.5"+ stroke-width="3"stroke="currentColor"fill="none"stroke-linecap="round"