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.

fix: show commit message on webhooks + prs

Andras Bacsaif6f44d8e8f5c
diff --git a/resources/views/livewire/project/application/deployment/index.blade.php b/resources/views/livewire/project/application/deployment/index.blade.php
index 4282700f8e..241530fe06 100644
--- a/resources/views/livewire/project/application/deployment/index.blade.php
+++ b/resources/views/livewire/project/application/deployment/index.blade.php
@@ -46,7 +46,7 @@
{{ $deployment->status }}
</div>
@if (data_get($deployment, 'is_webhook') || data_get($deployment, 'pull_request_id'))
- <div class="flex gap-1">
+ <div class="flex items-center gap-1">
@if (data_get($deployment, 'is_webhook'))
Webhook
@endif
@@ -55,12 +55,19 @@
|
@endif
Pull Request #{{ data_get($deployment, 'pull_request_id') }}
- (SHA
- @if (data_get($deployment, 'commit'))
- {{ data_get($deployment, 'commit') }})
- @else
- HEAD)
- @endif
+ @endif
+ @if (data_get($deployment, 'commit'))
+ <div class="dark:hover:text-white"
+ x-on:click.stop="goto('{{ $application->gitCommitLink(data_get($deployment, 'commit')) }}')">
+ <div class="text-xs underline">
+ @if ($deployment->commitMessage())
+ ({{ data_get_str($deployment, 'commit')->limit(7) }} -
+ {{ $deployment->commitMessage() }})
+ @else
+ {{ data_get_str($deployment, 'commit')->limit(7) }}
+ @endif
+ </div>
+ </div>
@endif
</div>
@else
@@ -98,7 +105,7 @@
Finished <span x-text="measure_since_started()">0s</span> in
<span class="font-bold" x-text="measure_finished_time()">0s</span>
@else
- Running for <span class="font-bold" x-text="measure_since_started()">0s</span>
+ Running for <span class="font-bold" x-text="measure_since_started()">0s</span>
@endif
</div>