feat: add private gh repos

This commit is contained in:
Andras Bacsai committed 2023-05-08 11:51:03 +02:00
1 parent f421bcb2c9
commit a37f748639
16 files changed
+292 -48

No files matched your search

+8
View File
@@ -15,4 +15,12 @@ class GithubApp extends BaseModel
{
return $this->belongsTo(PrivateKey::class);
}
static public function public()
{
return GithubApp::where('team_id', session('currentTeam')->id)->where('is_public', true)->get();
}
static public function private()
{
return GithubApp::where('team_id', session('currentTeam')->id)->where('is_public', false)->get();
}
}