@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