diff --git a/app/Livewire/Source/Github/Change.php b/app/Livewire/Source/Github/Change.php index cc9ceea8a..ed8daa861 100644 --- a/app/Livewire/Source/Github/Change.php +++ b/app/Livewire/Source/Github/Change.php @@ -76,6 +76,8 @@ class Change extends Component public string $manifestState = ''; + public string $activeTab = 'general'; + protected function rules(): array { return [ @@ -263,10 +265,18 @@ class Change extends Component } } $this->parameters = get_route_parameters(); + $routeName = request()->route()?->getName(); + if ($routeName === 'source.github.permissions') { + $this->activeTab = 'permissions'; + } elseif ($routeName === 'source.github.resources') { + $this->activeTab = 'resources'; + } else { + $this->activeTab = 'general'; + } if (isCloud() && ! isDev()) { $this->webhook_endpoint = config('app.url'); } else { - $this->webhook_endpoint = $this->fqdn ?? $this->ipv4 ?? ''; + $this->webhook_endpoint = $this->fqdn ?? $this->ipv4 ?? $this->ipv6 ?? config('app.url') ?? ''; $this->is_system_wide = $this->github_app->is_system_wide; } } catch (\Throwable $e) { diff --git a/resources/views/livewire/source/github/change.blade.php b/resources/views/livewire/source/github/change.blade.php index 623897de5..190938221 100644 --- a/resources/views/livewire/source/github/change.blade.php +++ b/resources/views/livewire/source/github/change.blade.php @@ -5,7 +5,8 @@
| Project | +Environment | +Name | +Type | +
|---|---|---|---|
| + {{ $projectName }} + | ++ {{ $environmentName }} + | +
+
+ {{ $resourceName }}
+ |
+ + {{ $resourceType }} + | +
| - Project - | -- Environment | -Name - | -Type - | -
|---|---|---|---|
| - {{ data_get($resource->project(), 'name') }} - | -- {{ data_get($resource, 'environment.name') }} - | -{{ $resource->name }}
- |
- - {{ str($resource->type())->headline() }} | -
+ Register a GitHub App via GitHub's manifest flow. Permissions and webhooks are pre-configured. +
++ Fill the GitHub App form manually. For self-hosted GitHub Enterprise or custom permission setups. +
+