Skip to content

Commit 08df976

Browse files
committed
fix: update pipeline gitlab event
1 parent 3153017 commit 08df976

File tree

5 files changed

+18
-1
lines changed

5 files changed

+18
-1
lines changed

lang/de/app.php

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -12,4 +12,8 @@
1212
'status' => 'Status',
1313
'link' => 'Link',
1414
'repo' => 'Repository',
15+
'author' => [
16+
'name' => 'Name',
17+
'email' => 'Email',
18+
]
1519
];

lang/en/app.php

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -12,4 +12,8 @@
1212
'status' => 'Status',
1313
'link' => 'Link',
1414
'repo' => 'Repository',
15+
'author' => [
16+
'name' => 'Name',
17+
'email' => 'Email',
18+
]
1519
];

lang/ja/app.php

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -12,4 +12,8 @@
1212
'status' => 'Status',
1313
'link' => 'Link',
1414
'repo' => 'Repository',
15+
'author' => [
16+
'name' => 'Name',
17+
'email' => 'Email',
18+
]
1519
];

lang/vi/app.php

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -12,4 +12,8 @@
1212
'status' => 'Trạng thái',
1313
'link' => 'Liên kết',
1414
'repo' => 'Kho',
15+
'author' => [
16+
'name' => 'Tên',
17+
'email' => 'Email',
18+
]
1519
];

resources/views/events/gitlab/pipeline/default.blade.php

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,7 @@
1010

1111
🚀 {{ __('tg-notifier::app.repo') }}: <a href="{{ $payload->project->web_url }}">{{ $payload->project->path_with_namespace }}</a>
1212
🌳 {{ __('tg-notifier::app.branch') }}: <code>{{ $payload->object_attributes->ref }}</code>
13+
👤 {{ __('tg-notifier::app.author.name') }}: <code>{{ $payload->commit->author->name }}</code>
1314
💻 {{ __('tg-notifier::app.commit') }}: <code>{{ $payload->commit->message }}</code>
1415
🔗 {{ __('tg-notifier::app.link') }}: <a href="{{ $payload->commit->url }}">{{ $payload->commit->id }}</a>
15-
🚦 {{ __('tg-notifier::app.status') }}: Pipeline <code>{{ $payload->object_attributes->status }}</code> ⏱️ {{ $payload->object_attributes->duration }}s
16+
🚦 {{ __('tg-notifier::app.status') }}: Pipeline <code>{{ $payload->object_attributes->status }}</code> {{ $payload->object_attributes->duration ? "⏱️ {$payload->object_attributes->duration}s" : '' }}

0 commit comments

Comments
 (0)