File tree Expand file tree Collapse file tree 1 file changed +6
-1
lines changed
resources/views/events/github/workflow_job Expand file tree Collapse file tree 1 file changed +6
-1
lines changed Original file line number Diff line number Diff line change 1212 $icon = ' 🚫' ;
1313 $last = ' ❌' ;
1414}
15+
16+ $startedAt = new DateTime ($payload -> workflow_job -> started_at );
17+ $completedAt = new DateTime ($payload -> workflow_job -> completed_at );
18+ $interval = $completedAt -> diff ($startedAt );
19+ $allSeconds = $interval -> s + $interval -> i * 60 + $interval -> h * 3600 ;
1520? >
1621
1722{{ $icon } } {!! __ (" tg-notifier::events/github/workflow_job.completed.$status " , [' repo' => " 🦑<a href='{$payload -> repository -> html_url }'>{$payload -> repository -> full_name }</a>" ]) ! !}
1823
1924🚀 {!! __ (' tg-notifier::events/github/workflow_job.name' ) ! !} : {{ $icon } } <code >{{ $payload -> workflow_job -> name } } </code > {{ $last } }
20- 🚨 {!! __ (' tg-notifier::events/github/workflow_job.status.title' ) ! !} : {!! __ (' tg-notifier::events/github/workflow_job.status.' . $status ) ! !}
25+ 🚨 {!! __ (' tg-notifier::events/github/workflow_job.status.title' ) ! !} : < code > {!! __ (' tg-notifier::events/github/workflow_job.status.' . $status ) ! !}</ code > 🕓 < code > {{ $allSeconds } } s</ code >
2126🔗 {!! __ (' tg-notifier::events/github/workflow_job.link' , [' link' => " <a href='{$payload -> workflow_job -> html_url }'>{$payload -> workflow_job -> workflow_name }</a>" ]) ! !}
You can’t perform that action at this time.
0 commit comments