feat: add application logs link to preview deployments PR comment (#7906)
This commit is contained in:
parent
9962ca8ba9
commit
2f5e879b73
1 changed files with 2 additions and 1 deletions
|
|
@ -54,8 +54,9 @@ public function handle()
|
||||||
ProcessStatus::CLOSED => '', // Already handled above, but included for completeness
|
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}";
|
$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';
|
$this->body .= 'Last updated at: '.now()->toDateTimeString().' CET';
|
||||||
if ($this->preview->pull_request_issue_comment_id) {
|
if ($this->preview->pull_request_issue_comment_id) {
|
||||||
$this->update_comment();
|
$this->update_comment();
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue