fix: if git limit reached, ignore it and continue with a default selection
This commit is contained in:
parent
7e11698c55
commit
1c7034ff78
@ -155,6 +155,13 @@ public function loadBranch()
|
|||||||
$this->getBranch();
|
$this->getBranch();
|
||||||
$this->selectedBranch = $this->git_branch;
|
$this->selectedBranch = $this->git_branch;
|
||||||
} catch (\Throwable $e) {
|
} catch (\Throwable $e) {
|
||||||
|
if ($this->rate_limit_remaining == 0) {
|
||||||
|
$this->selectedBranch = $this->git_branch;
|
||||||
|
$this->branchFound = true;
|
||||||
|
|
||||||
|
return;
|
||||||
|
}
|
||||||
|
ray($this->branchFound, $this->git_branch, $this->rate_limit_remaining);
|
||||||
if (! $this->branchFound && $this->git_branch == 'main') {
|
if (! $this->branchFound && $this->git_branch == 'main') {
|
||||||
try {
|
try {
|
||||||
$this->git_branch = 'master';
|
$this->git_branch = 'master';
|
||||||
|
@ -11,14 +11,11 @@
|
|||||||
Check repository
|
Check repository
|
||||||
</x-forms.button>
|
</x-forms.button>
|
||||||
</div>
|
</div>
|
||||||
@if (!$branchFound)
|
<div>
|
||||||
<div class="px-2 pt-4">
|
For example application deployments, checkout <a class="underline dark:text-white"
|
||||||
<div>
|
href="https://github.com/coollabsio/coolify-examples/" target="_blank">Coolify
|
||||||
For example application deployments, checkout <a class="underline dark:text-white"
|
Examples</a>.
|
||||||
href="https://github.com/coollabsio/coolify-examples/" target="_blank">Coolify
|
</div>
|
||||||
Examples</a>.
|
|
||||||
</div>
|
|
||||||
@endif
|
|
||||||
@if ($branchFound)
|
@if ($branchFound)
|
||||||
@if ($rate_limit_remaining && $rate_limit_reset)
|
@if ($rate_limit_remaining && $rate_limit_reset)
|
||||||
<div class="flex gap-2 py-2">
|
<div class="flex gap-2 py-2">
|
||||||
|
Loading…
Reference in New Issue
Block a user