feat: add private gh repos

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

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();
}
}