Skip to content

An open-source, self-hostable PaaS alternative to Vercel, Heroku & Netlify that lets you easily deploy static sites, databases, full-stack applications and 360+ one-click services on your own servers.

546 B
Raw Blame
@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