Skip to content

Commit e8820b3

Browse files
committed
fix: update some view template for github events
1 parent a1b33f5 commit e8820b3

File tree

2 files changed

+3
-7
lines changed

2 files changed

+3
-7
lines changed

resources/views/events/github/push/default.blade.php

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -19,9 +19,9 @@
1919
) !!}
2020

2121
@foreach($payload->commits as $commit)
22-
@php
23-
$commitId = substr($commit->id, -7);
24-
@endphp
22+
@php
23+
$commitId = substr($commit->id, -7);
24+
@endphp
2525
{!! __('tg-notifier::events/github/push.default.commit', [
2626
'commit' => "<a href='$commit->url'>$commitId</a>",
2727
'commit_message' => $commit->message,

resources/views/events/github/workflow_run/completed.blade.php

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -9,25 +9,21 @@
99
{!! __('tg-notifier::events/github/workflow_run.completed.success.title', ['user' => "<a href='{$payload->repository->html_url}'>{$payload->repository->full_name}</a>"]) !!}
1010

1111
{!! __('tg-notifier::events/github/workflow_run.completed.success.body', ['name' => $payload->workflow_run->name]) !!}
12-
1312
@break
1413
@case('failure')
1514
{!! __('tg-notifier::events/github/workflow_run.completed.failure.title', ['user' => "<a href='{$payload->repository->html_url}'>{$payload->repository->full_name}</a>"]) !!}
1615

1716
{!! __('tg-notifier::events/github/workflow_run.completed.failure.body', ['name' => $payload->workflow_run->name]) !!}
18-
1917
@break
2018
@case('cancelled')
2119
{!! __('tg-notifier::events/github/workflow_run.completed.cancelled.title', ['user' => "<a href='{$payload->repository->html_url}'>{$payload->repository->full_name}</a>"]) !!}
2220

2321
{!! __('tg-notifier::events/github/workflow_run.completed.cancelled.body', ['name' => $payload->workflow_run->name]) !!}
24-
2522
@break
2623
@default
2724
{!! __('tg-notifier::events/github/workflow_run.completed.default.title', ['user' => "<a href='{$payload->repository->html_url}'>{$payload->repository->full_name}</a>"]) !!}
2825

2926
{!! __('tg-notifier::events/github/workflow_run.completed.default.body', ['name' => $payload->workflow_run->name]) !!}
30-
3127
@break
3228
@endswitch
3329

0 commit comments

Comments
 (0)