File tree Expand file tree Collapse file tree 5 files changed +47
-26
lines changed
resources/views/events/gitlab/release Expand file tree Collapse file tree 5 files changed +47
-26
lines changed Original file line number Diff line number Diff line change 55 'closed ' => [
66 'title ' => '🚫 <b>Issue Closed </b> to 🦊 :issue by :user ' ,
77 ],
8- 'edited ' => [
9- 'title ' => '⚠️ <b>Issue has been edited</b> to 🦊 :issue by :user ' ,
10- 'changes ' => [
11- 'title ' => [
12- 'name ' => '📖 <b>Title</b> has been changed ' ,
13- 'from ' => '📝 <b>From:</b> :title_from ' ,
14- 'to ' => '🏷 <b>To:</b> :title_to ' ,
15- ],
16- 'body ' => [
17- 'title ' => '📖 <b>Body</b> has been changed ' ,
18- 'message ' => 'Please check the issue for more details ' ,
19- ],
20- ],
21- ],
228 'opened ' => [
239 'title ' => '⚠️ <b>New Issue</b> to 🦊 :issue by :user ' ,
2410 ],
Original file line number Diff line number Diff line change 1+ <?php
2+
3+ return [
4+ 'title ' => [
5+ 'create ' => '✅🚀 <b>Release Created</b> - 🦊:repo by :user ' ,
6+ 'update ' => '📝🚀 <b>Release Updated</b> - 🦊:repo by :user ' ,
7+ 'delete ' => '🚫🚀 <b>Release Deleted</b> - 🦊:repo by :user ' ,
8+ ],
9+ ];
Original file line number Diff line number Diff line change 11<?php
22/**
33 * @var $payload object
4+ * @var $event string
45 */
56
6- $message = " ✅🚀 <b>Release Created</b> - 🦊<a href= \" { $payload -> url } \" >{ $payload -> project -> path_with_namespace }#{ $payload -> tag }</a> by <b>{ $payload -> commit -> author -> name }</b> \n\n " ;
7+ ? >
78
8- $message .= " 🔖 <b>{$payload -> tag }</b> \n " ;
9+ {!! __ (' tg-notifier::events/gitlab/release.title.create' , [
10+ ' repo' => " <a href='$payload -> url '>{$payload -> project -> path_with_namespace }#{$payload -> tag }</a>" ,
11+ ' user' => " <b>{$payload -> commit -> author -> name }</b>"
12+ ]
13+ ) ! !}
914
10- $message .= " 🗞 <b>{$payload -> name }</b> \n " ;
15+ 🔖 <b >{{ $payload -> tag } } </b >
16+ 🗞 <b >{{ $payload -> name } } </b >
1117
12- $message .= require __DIR__ . ' /../../shared/partials/gitlab/_body.php' ;
13-
14- echo $message ;
18+ @include (' tg-notifier::events.shared.partials.gitlab._body' , compact (' payload' , ' event' ) )
Original file line number Diff line number Diff line change 1+ <?php
2+ /**
3+ * @var $payload object
4+ * @var $event string
5+ */
6+
7+ ? >
8+
9+ {!! __ (' tg-notifier::events/gitlab/release.title.delete' , [
10+ ' repo' => " <a href='$payload -> url '>{$payload -> project -> path_with_namespace }#{$payload -> tag }</a>" ,
11+ ' user' => " <b>{$payload -> commit -> author -> name }</b>"
12+ ]
13+ ) ! !}
14+
15+ 🔖 <b >{{ $payload -> tag } } </b >
16+ 🗞 <b >{{ $payload -> name } } </b >
17+
18+ @include (' tg-notifier::events.shared.partials.gitlab._body' , compact (' payload' , ' event' ) )
Original file line number Diff line number Diff line change 11<?php
22/**
33 * @var $payload object
4+ * @var $event string
45 */
56
6- $message = " 📝🚀 <b>Release Updated</b> - 🦊<a href= \" { $payload -> url } \" >{ $payload -> project -> path_with_namespace }#{ $payload -> tag }</a> by <b>{ $payload -> commit -> author -> name }</b> \n\n " ;
7+ ? >
78
8- $message .= " 🔖 <b>{$payload -> tag }</b> \n " ;
9+ {!! __ (' tg-notifier::events/gitlab/release.title.update' , [
10+ ' repo' => " <a href='$payload -> url '>{$payload -> project -> path_with_namespace }#{$payload -> tag }</a>" ,
11+ ' user' => " <b>{$payload -> commit -> author -> name }</b>"
12+ ]
13+ ) ! !}
914
10- $message .= " 🗞 <b>{$payload -> name }</b> \n " ;
15+ 🔖 <b >{{ $payload -> tag } } </b >
16+ 🗞 <b >{{ $payload -> name } } </b >
1117
12- $message .= require __DIR__ . ' /../../shared/partials/gitlab/_body.php' ;
13-
14- echo $message ;
18+ @include (' tg-notifier::events.shared.partials.gitlab._body' , compact (' payload' , ' event' ) )
You can’t perform that action at this time.
0 commit comments