This commit is contained in:
Andras Bacsai 2024-12-05 11:00:57 +01:00
parent c8e2cd32e5
commit c25be01af6
2 changed files with 6 additions and 1 deletions

View file

@ -158,6 +158,10 @@ public function mount()
public function getGithubAppNameUpdatePath()
{
if (str($this->github_app->organization)->isNotEmpty()) {
return "{$this->github_app->html_url}/organizations/{$this->github_app->organization}/settings/apps/{$this->github_app->name}";
}
return "{$this->github_app->html_url}/settings/apps/{$this->github_app->name}";
}
@ -184,7 +188,7 @@ private function generateGithubJwt($private_key, $app_id): string
public function updateGithubAppName()
{
try {
$privateKey = PrivateKey::find($this->github_app->private_key_id);
$privateKey = PrivateKey::ownedByCurrentTeam()->find($this->github_app->private_key_id);
if (! $privateKey) {
$this->dispatch('error', 'No private key found for this GitHub App.');

View file

@ -23,6 +23,7 @@ public function run(): void
GithubApp::create([
'name' => 'coolify-laravel-development-public',
'uuid' => '69420',
'organization' => 'coollabsio',
'api_url' => 'https://api.github.com',
'html_url' => 'https://github.com',
'is_public' => false,