File tree Expand file tree Collapse file tree 5 files changed +30
-9
lines changed
resources/events/gitlab/note Expand file tree Collapse file tree 5 files changed +30
-9
lines changed Original file line number Diff line number Diff line change 1010 "note" : {
1111 "issue" : true ,
1212 "merge_request" : true ,
13- "snippet " : false ,
14- "commit " : false
13+ "commit " : false ,
14+ "snippet " : false
1515 },
1616 "merge_request" : {
1717 "open" : true ,
3333 "release" : {
3434 "create" : true ,
3535 "update" : false
36- },
37- "emoji" : {
38- "award" : true ,
39- "revoke" : false
4036 }
4137}
Original file line number Diff line number Diff line change 1+ <?php
2+ /**
3+ * @var $payload mixed
4+ */
15
6+ $ message = "💬 <b>New Comment on Commit</b> - 🦊<a href= \"{$ payload ->object_attributes ->url }\"> {$ payload ->project ->path_with_namespace }</a> by <b> {$ payload ->user ->name }</b> \n\n" ;
27
3- // comment issue in gitlab
8+ $ message .= "⚙️ <b> {$ payload ->commit ->message }</b> \n\n" ;
9+
10+ $ message .= "🔗 View Comment: <a href= \"{$ payload ->object_attributes ->url }\"> {$ payload ->commit ->id }</a> \n\n" ;
11+
12+ $ message .= require __DIR__ . '/../../shared/partials/gitlab/_body.php ' ;
13+
14+ echo $ message ;
Original file line number Diff line number Diff line change 55
66$ message = "💬 <b>New Comment on Issue</b> - 🦊<a href= \"{$ payload ->object_attributes ->url }\"> {$ payload ->project ->path_with_namespace }# {$ payload ->issue ->iid }</a> by <b> {$ payload ->user ->name }</b> \n\n" ;
77
8- $ message .= "📢 <b> {$ payload ->issue ->title }</b> \n" ;
8+ $ message .= "📢 <b> {$ payload ->issue ->title }</b> \n\n " ;
99
1010$ message .= require __DIR__ . '/../../shared/partials/gitlab/_body.php ' ;
1111
Original file line number Diff line number Diff line change 1+ <?php
2+ /**
3+ * @var $payload mixed
4+ */
5+
6+ $ message = "💬 <b>New Comment on Snippet</b> - 🦊<a href= \"{$ payload ->object_attributes ->url }\"> {$ payload ->project ->path_with_namespace }</a> by <b> {$ payload ->user ->name }</b> \n\n" ;
7+
8+ $ message .= "📝 <b> {$ payload ->snippet ->title }</b> \n\n" ;
9+
10+ $ message .= "🔗 <a href= \"{$ payload ->object_attributes ->url }\">View Comment</a> \n\n" ;
11+
12+ $ message .= require __DIR__ . '/../../shared/partials/gitlab/_body.php ' ;
13+
14+ echo $ message ;
Original file line number Diff line number Diff line change @@ -70,7 +70,7 @@ public function getActionOfEvent($payload): string
7070 ?? '' ;
7171
7272 if (!empty ($ action )) {
73- return ($ action );
73+ return convert_action_name ($ action );
7474 }
7575
7676 return '' ;
You can’t perform that action at this time.
0 commit comments