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: load public repos

Andras Bacsai9f63c645ff7f
diff --git a/apps/ui/src/routes/applications/[id]/configuration/_PublicRepository.svelte b/apps/ui/src/routes/applications/[id]/configuration/_PublicRepository.svelte
index 32d5627d98..49e8bcee51 100644
--- a/apps/ui/src/routes/applications/[id]/configuration/_PublicRepository.svelte
+++ b/apps/ui/src/routes/applications/[id]/configuration/_PublicRepository.svelte
@@ -39,6 +39,9 @@
if (branch[0] === 'tree' && branch[1]) {
branchName = branch[1];
}
+ if (branch.length === 1) {
+ branchName = branch[0]
+ }
}
if (host === 'gitlab.com') {
host = 'gitlab.com/api/v4';
@@ -46,6 +49,9 @@
if (branch[1] === 'tree' && branch[2]) {
branchName = branch[2];
}
+ if (branch.length === 1) {
+ branchName = branch[0]
+ }
}
const apiUrl = `${protocol}://${host}`;
if (type === 'github') {
@@ -165,7 +171,7 @@
placeholder="eg: https://github.com/coollabsio/nodejs-example/tree/main"
bind:value={publicRepositoryLink}
/>
- <button class="btn bg-orange-600" type="submit">
+ <button class="btn bg-orange-600" disabled={loading.branches} type="submit" class:loading={loading.branches}>
Load Repository
</button>
</div>