mirror of
https://github.com/ershisan99/coolify.git
synced 2025-12-17 04:59:30 +00:00
fix: load public repos
This commit is contained in:
@@ -39,6 +39,9 @@
|
|||||||
if (branch[0] === 'tree' && branch[1]) {
|
if (branch[0] === 'tree' && branch[1]) {
|
||||||
branchName = branch[1];
|
branchName = branch[1];
|
||||||
}
|
}
|
||||||
|
if (branch.length === 1) {
|
||||||
|
branchName = branch[0]
|
||||||
|
}
|
||||||
}
|
}
|
||||||
if (host === 'gitlab.com') {
|
if (host === 'gitlab.com') {
|
||||||
host = 'gitlab.com/api/v4';
|
host = 'gitlab.com/api/v4';
|
||||||
@@ -46,6 +49,9 @@
|
|||||||
if (branch[1] === 'tree' && branch[2]) {
|
if (branch[1] === 'tree' && branch[2]) {
|
||||||
branchName = branch[2];
|
branchName = branch[2];
|
||||||
}
|
}
|
||||||
|
if (branch.length === 1) {
|
||||||
|
branchName = branch[0]
|
||||||
|
}
|
||||||
}
|
}
|
||||||
const apiUrl = `${protocol}://${host}`;
|
const apiUrl = `${protocol}://${host}`;
|
||||||
if (type === 'github') {
|
if (type === 'github') {
|
||||||
@@ -165,7 +171,7 @@
|
|||||||
placeholder="eg: https://github.com/coollabsio/nodejs-example/tree/main"
|
placeholder="eg: https://github.com/coollabsio/nodejs-example/tree/main"
|
||||||
bind:value={publicRepositoryLink}
|
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
|
Load Repository
|
||||||
</button>
|
</button>
|
||||||
</div>
|
</div>
|
||||||
|
|||||||
Reference in New Issue
Block a user