From dcfcee1db65712d6961d7dd15f8a66d1d24f70b8 Mon Sep 17 00:00:00 2001 From: Andras Bacsai Date: Wed, 11 Oct 2023 12:56:57 +0200 Subject: [PATCH] fix: public git --- app/Http/Livewire/Project/New/PublicGitRepository.php | 6 +++++- .../livewire/project/new/public-git-repository.blade.php | 9 ++++----- resources/views/livewire/project/new/select.blade.php | 2 +- 3 files changed, 10 insertions(+), 7 deletions(-) diff --git a/app/Http/Livewire/Project/New/PublicGitRepository.php b/app/Http/Livewire/Project/New/PublicGitRepository.php index ebcbb8253..f1f4e9833 100644 --- a/app/Http/Livewire/Project/New/PublicGitRepository.php +++ b/app/Http/Livewire/Project/New/PublicGitRepository.php @@ -72,10 +72,14 @@ class PublicGitRepository extends Component public function load_branch() { try { - $this->branch_found = false; $this->validate([ 'repository_url' => 'required|url' ]); + } catch (\Throwable $e) { + return handleError($e, $this); + } + try { + $this->branch_found = false; $this->get_git_source(); $this->get_branch(); $this->selected_branch = $this->git_branch; diff --git a/resources/views/livewire/project/new/public-git-repository.blade.php b/resources/views/livewire/project/new/public-git-repository.blade.php index 78f7742c9..37459187b 100644 --- a/resources/views/livewire/project/new/public-git-repository.blade.php +++ b/resources/views/livewire/project/new/public-git-repository.blade.php @@ -1,13 +1,13 @@

Create a new Application

Deploy any public Git repositories.
-
+
- - + Check repository
@@ -16,10 +16,9 @@
Rate Limit
+ helper="Rate limit remaining: {{ $rate_limit_remaining }}
Rate limit reset at: {{ $rate_limit_reset }} UTC" />
@endif -

Details

@if ($git_source === 'other') diff --git a/resources/views/livewire/project/new/select.blade.php b/resources/views/livewire/project/new/select.blade.php index a7693de0d..2aa62e83e 100644 --- a/resources/views/livewire/project/new/select.blade.php +++ b/resources/views/livewire/project/new/select.blade.php @@ -25,7 +25,7 @@ Public Repository
- You can deploy any kind of public repositories from the supported git servers. + You can deploy any kind of public repositories from the supported git providers.