mirror of
https://github.com/tiennm99/coolify.git
synced 2026-08-20 06:23:23 +00:00
feat(github): add GitHub App connection testing
This commit is contained in:
@@ -98,4 +98,17 @@ class GithubApp extends BaseModel
|
||||
},
|
||||
);
|
||||
}
|
||||
|
||||
/**
|
||||
* A private GitHub App is connected once it has been registered and installed.
|
||||
* Public sources do not require installation credentials.
|
||||
*/
|
||||
public function isConnected(): bool
|
||||
{
|
||||
if ($this->is_public) {
|
||||
return true;
|
||||
}
|
||||
|
||||
return filled($this->app_id) && filled($this->installation_id);
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user