fix: server stopped, service page not reachable

This commit is contained in:
Andras Bacsai
2024-03-18 08:53:44 +01:00
parent adf5c9bd46
commit b39ac73cd8
4 changed files with 24 additions and 9 deletions

View File

@@ -71,6 +71,9 @@ class GetLogs extends Component
}
public function getLogs($refresh = false)
{
if (!$this->server->isFunctional()) {
return;
}
if ($this->resource?->getMorphClass() === 'App\Models\Application') {
if (str($this->container)->contains('-pr-')) {
$this->pull_request = "Pull Request: " . str($this->container)->afterLast('-pr-')->beforeLast('_')->value();