mirror of
https://github.com/coollabsio/coolify.git
synced 2026-11-16 09:42:29 -04:00
Co-authored-by: Aditya Tripathi <aditya@climactic.co> Co-authored-by: peaklabs-dev <122374094+peaklabs-dev@users.noreply.github.com> Co-authored-by: Claude Opus 5.5 <noreply@anthropic.com> Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com> Co-authored-by: rosslh <ross@rosshill.ca> Co-authored-by: Abdulfetah Suudi <suudiabdulfetah@gmail.com> Co-authored-by: Dharmveer <51308779+dharmveer97@users.noreply.github.com> Co-authored-by: Maxwell <136101+mxswd@users.noreply.github.com>
17 lines
546 B
PHP
17 lines
546 B
PHP
@props(['commit' => null])
|
|
@if ($commit)
|
|
@php
|
|
$commitLine = null;
|
|
if ($commit['short_sha']) {
|
|
$shortSha = e($commit['short_sha']);
|
|
$commitLine = '**Commit:** '.($commit['url'] ? "[{$shortSha}](".e($commit['url']).')' : $shortSha);
|
|
if ($commit['branch']) {
|
|
$commitLine .= ' on '.e($commit['branch']);
|
|
}
|
|
}
|
|
$messageBlock = $commit['message'] ? "**Commit message:**\n\n".e($commit['message']) : null;
|
|
@endphp
|
|
{!! collect([$commitLine, $messageBlock])->filter()->implode("\n\n") !!}
|
|
|
|
@endif
|