fix: show commit message on webhooks + prs

This commit is contained in:
Andras Bacsai
2024-06-14 14:48:12 +02:00
parent e0a2e3bd0c
commit f6f44d8e8f

View File

@@ -46,7 +46,7 @@
{{ $deployment->status }} {{ $deployment->status }}
</div> </div>
@if (data_get($deployment, 'is_webhook') || data_get($deployment, 'pull_request_id')) @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')) @if (data_get($deployment, 'is_webhook'))
Webhook Webhook
@endif @endif
@@ -55,12 +55,19 @@
| |
@endif @endif
Pull Request #{{ data_get($deployment, 'pull_request_id') }} Pull Request #{{ data_get($deployment, 'pull_request_id') }}
(SHA @endif
@if (data_get($deployment, 'commit')) @if (data_get($deployment, 'commit'))
{{ data_get($deployment, 'commit') }}) <div class="dark:hover:text-white"
@else x-on:click.stop="goto('{{ $application->gitCommitLink(data_get($deployment, 'commit')) }}')">
HEAD) <div class="text-xs underline">
@endif @if ($deployment->commitMessage())
({{ data_get_str($deployment, 'commit')->limit(7) }} -
{{ $deployment->commitMessage() }})
@else
{{ data_get_str($deployment, 'commit')->limit(7) }}
@endif
</div>
</div>
@endif @endif
</div> </div>
@else @else
@@ -98,7 +105,7 @@
Finished <span x-text="measure_since_started()">0s</span> in Finished <span x-text="measure_since_started()">0s</span> in
<span class="font-bold" x-text="measure_finished_time()">0s</span> <span class="font-bold" x-text="measure_finished_time()">0s</span>
@else @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 @endif
</div> </div>