fix: public prs should not be commented

This commit is contained in:
Andras Bacsai
2024-03-01 11:41:22 +01:00
parent 5322d446bd
commit a352e4cbf7
2 changed files with 9 additions and 0 deletions

View File

@@ -65,6 +65,12 @@ class Application extends BaseModel
return $this->belongsToMany(StandaloneDocker::class, 'additional_destinations')
->withPivot('server_id', 'status');
}
public function is_public_repository(): bool {
if (data_get($this, 'source.is_public')) {
return true;
}
return false;
}
public function is_github_based(): bool
{
if (data_get($this, 'source')) {