feat: add application logs link to preview deployments PR comment (#7906)

This commit is contained in:
Hendrik Kleinwaechter 2026-01-10 17:34:13 +01:00 committed by GitHub
parent 9962ca8ba9
commit 2f5e879b73
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -54,8 +54,9 @@ public function handle()
ProcessStatus::CLOSED => '', // Already handled above, but included for completeness
};
$this->build_logs_url = base_url()."/project/{$this->application->environment->project->uuid}/environment/{$this->application->environment->uuid}/application/{$this->application->uuid}/deployment/{$this->deployment_uuid}";
$application_logs_url = base_url()."/project/{$this->application->environment->project->uuid}/environment/{$this->application->environment->uuid}/application/{$this->application->uuid}/logs";
$this->body .= '[Open Build Logs]('.$this->build_logs_url.")\n\n\n";
$this->body .= '[Open Build Logs]('.$this->build_logs_url.') | [Open Application Logs]('.$application_logs_url.")\n\n\n";
$this->body .= 'Last updated at: '.now()->toDateTimeString().' CET';
if ($this->preview->pull_request_issue_comment_id) {
$this->update_comment();