Skip to content

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.

fix: Autodeploy true by default for GH repos

Andras Bacsai1bc9e4c2d3a7
diff --git a/src/routes/applications/[id]/configuration/_GithubRepositories.svelte b/src/routes/applications/[id]/configuration/_GithubRepositories.svelte
index 9ba619d648..f69db04762 100644
--- a/src/routes/applications/[id]/configuration/_GithubRepositories.svelte
+++ b/src/routes/applications/[id]/configuration/_GithubRepositories.svelte
@@ -25,10 +25,10 @@
let selected = {
projectId: undefined,
repository: undefined,
- branch: undefined
+ branch: undefined,
+ autodeploy: application.settings.autodeploy || true
};
let showSave = false;
- let autodeploy = application.settings.autodeploy || true;
async function loadRepositoriesByPage(page = 0) {
return await get(`${apiUrl}/installation/repositories?per_page=100&page=${page}`, {
@@ -75,7 +75,7 @@
`This branch is already used by another application. Webhooks won't work in this case for both applications. Are you sure you want to use it?`
);
if (sure) {
- autodeploy = false;
+ selected.autodeploy = false;
showSave = true;
return true;
}