diff --git a/lang/de/events/github/pull_request.php b/lang/de/events/github/pull_request.php
index 8fdcf31..088ccb7 100644
--- a/lang/de/events/github/pull_request.php
+++ b/lang/de/events/github/pull_request.php
@@ -3,14 +3,14 @@
return [
'review' => 'š„ Reviewers: ',
'closed' => [
- 'title' => ':title - š¦:issue by :user',
+ 'title' => ':title - š¦:repo by :user',
'title_merged' => 'ā
Pull Request Merged',
- 'title_closed' => 'ā Pull Request Closed',
+ 'title_closed' => 'š« Pull Request Closed',
],
'opened' => [
- 'title' => 'š·āāļøš ļø New Pull Request - š¦:issue by :user',
+ 'title' => 'š·āāļøš ļø New Pull Request - š¦:repo by :user',
],
'reopened' => [
- 'title' => 'š·āāļøš ļø Reopened Pull Request - š¦:issue by :user',
+ 'title' => 'š·āāļøš ļø Reopened Pull Request - š¦:repo by :user',
],
];
diff --git a/lang/de/events/github/push.php b/lang/de/events/github/push.php
index cf34b67..e37a931 100644
--- a/lang/de/events/github/push.php
+++ b/lang/de/events/github/push.php
@@ -2,8 +2,8 @@
return [
'default' => [
- 'title' => 'š·āļø :count new :noun to š¦:user::branch
',
- 'commit' => ':commit: :commit_message - by :commit_name',
- 'pushed' => 'š¤ Pushed by : :name',
+ 'title' => 'š·āļø :count new :noun to š¦:repo::branch
',
+ 'commit' => '[:commit] :commit_message - by :commit_by',
+ 'pusher' => 'š¤ Pushed by : :name',
],
];
diff --git a/lang/de/events/github/workflow_run.php b/lang/de/events/github/workflow_run.php
index 4e895d4..f6cff4d 100644
--- a/lang/de/events/github/workflow_run.php
+++ b/lang/de/events/github/workflow_run.php
@@ -23,5 +23,5 @@
'title' => ' Workflow Requested form š¦:user',
'body' => 'Running workflow: š„ :name ā³',
],
- 'link' => 'š Link: :link',
+ 'link' => 'š Workflow run link: :link',
];
diff --git a/lang/de/events/gitlab/feature_flag.php b/lang/de/events/gitlab/feature_flag.php
new file mode 100644
index 0000000..4380727
--- /dev/null
+++ b/lang/de/events/gitlab/feature_flag.php
@@ -0,0 +1,9 @@
+ [
+ 'enabled' => 'Feature Flag Enabled š¦:flag_tag by :user_tag',
+ 'disabled' => 'Feature Flag Disabled š¦:flag_tag by :user_tag',
+ ],
+ 'name' => 'Name: :flag_name',
+];
diff --git a/lang/de/events/gitlab/issues.php b/lang/de/events/gitlab/issues.php
new file mode 100644
index 0000000..a8959f2
--- /dev/null
+++ b/lang/de/events/gitlab/issues.php
@@ -0,0 +1,28 @@
+ 'š¢',
+ 'closed' => [
+ 'title' => 'š« Issue Closed to š¦ :issue by :user',
+ ],
+ 'edited' => [
+ 'title' => 'ā ļø Issue has been edited to š¦ :issue by :user',
+ 'changes' => [
+ 'title' => [
+ 'name' => 'š Title has been changed',
+ 'from' => 'š From: :title_from',
+ 'to' => 'š· To: :title_to',
+ ],
+ 'body' => [
+ 'title' => 'š Body has been changed',
+ 'message' => 'Please check the issue for more details',
+ ],
+ ],
+ ],
+ 'opened' => [
+ 'title' => 'ā ļø New Issue to š¦ :issue by :user',
+ ],
+ 'reopened' => [
+ 'title' => 'ā ļø Issue has been reopened ā ļø to š¦ :issue by :user',
+ ],
+];
diff --git a/lang/de/events/gitlab/merge_request.php b/lang/de/events/gitlab/merge_request.php
new file mode 100644
index 0000000..f333adb
--- /dev/null
+++ b/lang/de/events/gitlab/merge_request.php
@@ -0,0 +1,32 @@
+ 'š„ Reviewers: ',
+ 'closed' => [
+ 'title' => 'š« Merge Request Closed - š¦:repo by :user',
+ ],
+ 'merged' => [
+ 'title' => 'ā
Merge Request Merged - š¦:repo by :user',
+ ],
+ 'opened' => [
+ 'title' => 'š·āāļøš ļø New Merge Request - š¦:repo by :user',
+ ],
+ 'reopened' => [
+ 'title' => 'š·āāļøš ļø Merge Request Reopened - š¦:repo by :user',
+ ],
+ 'approved' => [
+ 'title' => 'š Merge Request Approved ā
- š¦:repo by :user',
+ ],
+ 'unapproved' => [
+ 'title' => 'š Merge Request Unapproved ā - š¦:repo by :user',
+ ],
+ 'approval' => [
+ 'title' => 'š Merge Request Approval ā
- š¦:repo by :user',
+ ],
+ 'unapproval' => [
+ 'title' => 'š Merge Request Unapproval ā - š¦:repo by :user',
+ ],
+ 'update' => [
+ 'title' => 'š ļø Merge Request Updated - š¦:repo by :user',
+ ],
+];
diff --git a/lang/de/events/gitlab/note.php b/lang/de/events/gitlab/note.php
new file mode 100644
index 0000000..ad42f0b
--- /dev/null
+++ b/lang/de/events/gitlab/note.php
@@ -0,0 +1,12 @@
+ [
+ 'commit' => 'š¬ New Comment on Commit - š¦:repo by :user',
+ 'issue' => 'š¬ New Comment on Issue - š¦:repo by :user',
+ 'merge_request' => 'š¬ New Comment on Merge Request - š¦:repo by :user',
+ 'snippet' => 'š¬ New Comment on Snippet - š¦:repo by :user',
+ ],
+ 'view_comment' => 'š View Comment: :link',
+ 'snippet_comment' => 'View Comment on Snippet',
+];
diff --git a/lang/de/events/gitlab/push.php b/lang/de/events/gitlab/push.php
new file mode 100644
index 0000000..3c6cba5
--- /dev/null
+++ b/lang/de/events/gitlab/push.php
@@ -0,0 +1,9 @@
+ [
+ 'title' => 'š·āļø :count new :noun to š¦:repo::branch
',
+ 'commit' => '[:commit] :commit_message - by :commit_by',
+ 'pusher' => 'š¤ Pushed by : :name',
+ ],
+];
diff --git a/lang/de/events/gitlab/release.php b/lang/de/events/gitlab/release.php
new file mode 100644
index 0000000..d50cc0c
--- /dev/null
+++ b/lang/de/events/gitlab/release.php
@@ -0,0 +1,9 @@
+ [
+ 'create' => 'ā
š Release Created - š¦:repo by :user',
+ 'update' => 'šš Release Updated - š¦:repo by :user',
+ 'delete' => 'š«š Release Deleted - š¦:repo by :user',
+ ],
+];
diff --git a/lang/de/events/gitlab/tag_push.php b/lang/de/events/gitlab/tag_push.php
new file mode 100644
index 0000000..d405f85
--- /dev/null
+++ b/lang/de/events/gitlab/tag_push.php
@@ -0,0 +1,7 @@
+ 'āļø A new tag has been pushed to the project š¦:repo',
+ 'name' => 'š Tag Name: :tag_name',
+ 'pusher' => 'š¤ Pushed by: :pusher',
+];
diff --git a/lang/de/events/gitlab/wiki_page.php b/lang/de/events/gitlab/wiki_page.php
new file mode 100644
index 0000000..c700d96
--- /dev/null
+++ b/lang/de/events/gitlab/wiki_page.php
@@ -0,0 +1,10 @@
+ [
+ 'create' => 'š Wiki Page Created - š¦:repo by :user',
+ 'update' => 'š Wiki Page Updated - š¦:repo by :user',
+ 'delete' => 'š Wiki Page Deleted - š¦:repo by :user',
+ ],
+ 'name' => 'š Page Name: :name',
+];
diff --git a/lang/de/events/shared/gitlab.php b/lang/de/events/shared/gitlab.php
new file mode 100644
index 0000000..ce3f29f
--- /dev/null
+++ b/lang/de/events/shared/gitlab.php
@@ -0,0 +1,10 @@
+ [
+ 'title' => 'š Content:',
+ ],
+ '_assignee' => [
+ 'title' => 'š Assignee: ',
+ ],
+];
diff --git a/lang/en/events/github/pull_request.php b/lang/en/events/github/pull_request.php
index 8fdcf31..088ccb7 100644
--- a/lang/en/events/github/pull_request.php
+++ b/lang/en/events/github/pull_request.php
@@ -3,14 +3,14 @@
return [
'review' => 'š„ Reviewers: ',
'closed' => [
- 'title' => ':title - š¦:issue by :user',
+ 'title' => ':title - š¦:repo by :user',
'title_merged' => 'ā
Pull Request Merged',
- 'title_closed' => 'ā Pull Request Closed',
+ 'title_closed' => 'š« Pull Request Closed',
],
'opened' => [
- 'title' => 'š·āāļøš ļø New Pull Request - š¦:issue by :user',
+ 'title' => 'š·āāļøš ļø New Pull Request - š¦:repo by :user',
],
'reopened' => [
- 'title' => 'š·āāļøš ļø Reopened Pull Request - š¦:issue by :user',
+ 'title' => 'š·āāļøš ļø Reopened Pull Request - š¦:repo by :user',
],
];
diff --git a/lang/en/events/github/push.php b/lang/en/events/github/push.php
index cf34b67..e37a931 100644
--- a/lang/en/events/github/push.php
+++ b/lang/en/events/github/push.php
@@ -2,8 +2,8 @@
return [
'default' => [
- 'title' => 'š·āļø :count new :noun to š¦:user::branch
',
- 'commit' => ':commit: :commit_message - by :commit_name',
- 'pushed' => 'š¤ Pushed by : :name',
+ 'title' => 'š·āļø :count new :noun to š¦:repo::branch
',
+ 'commit' => '[:commit] :commit_message - by :commit_by',
+ 'pusher' => 'š¤ Pushed by : :name',
],
];
diff --git a/lang/en/events/github/workflow_run.php b/lang/en/events/github/workflow_run.php
index 4e895d4..f6cff4d 100644
--- a/lang/en/events/github/workflow_run.php
+++ b/lang/en/events/github/workflow_run.php
@@ -23,5 +23,5 @@
'title' => ' Workflow Requested form š¦:user',
'body' => 'Running workflow: š„ :name ā³',
],
- 'link' => 'š Link: :link',
+ 'link' => 'š Workflow run link: :link',
];
diff --git a/lang/en/events/gitlab/feature_flag.php b/lang/en/events/gitlab/feature_flag.php
new file mode 100644
index 0000000..4380727
--- /dev/null
+++ b/lang/en/events/gitlab/feature_flag.php
@@ -0,0 +1,9 @@
+ [
+ 'enabled' => 'Feature Flag Enabled š¦:flag_tag by :user_tag',
+ 'disabled' => 'Feature Flag Disabled š¦:flag_tag by :user_tag',
+ ],
+ 'name' => 'Name: :flag_name',
+];
diff --git a/lang/en/events/gitlab/issues.php b/lang/en/events/gitlab/issues.php
new file mode 100644
index 0000000..a8959f2
--- /dev/null
+++ b/lang/en/events/gitlab/issues.php
@@ -0,0 +1,28 @@
+ 'š¢',
+ 'closed' => [
+ 'title' => 'š« Issue Closed to š¦ :issue by :user',
+ ],
+ 'edited' => [
+ 'title' => 'ā ļø Issue has been edited to š¦ :issue by :user',
+ 'changes' => [
+ 'title' => [
+ 'name' => 'š Title has been changed',
+ 'from' => 'š From: :title_from',
+ 'to' => 'š· To: :title_to',
+ ],
+ 'body' => [
+ 'title' => 'š Body has been changed',
+ 'message' => 'Please check the issue for more details',
+ ],
+ ],
+ ],
+ 'opened' => [
+ 'title' => 'ā ļø New Issue to š¦ :issue by :user',
+ ],
+ 'reopened' => [
+ 'title' => 'ā ļø Issue has been reopened ā ļø to š¦ :issue by :user',
+ ],
+];
diff --git a/lang/en/events/gitlab/merge_request.php b/lang/en/events/gitlab/merge_request.php
new file mode 100644
index 0000000..f333adb
--- /dev/null
+++ b/lang/en/events/gitlab/merge_request.php
@@ -0,0 +1,32 @@
+ 'š„ Reviewers: ',
+ 'closed' => [
+ 'title' => 'š« Merge Request Closed - š¦:repo by :user',
+ ],
+ 'merged' => [
+ 'title' => 'ā
Merge Request Merged - š¦:repo by :user',
+ ],
+ 'opened' => [
+ 'title' => 'š·āāļøš ļø New Merge Request - š¦:repo by :user',
+ ],
+ 'reopened' => [
+ 'title' => 'š·āāļøš ļø Merge Request Reopened - š¦:repo by :user',
+ ],
+ 'approved' => [
+ 'title' => 'š Merge Request Approved ā
- š¦:repo by :user',
+ ],
+ 'unapproved' => [
+ 'title' => 'š Merge Request Unapproved ā - š¦:repo by :user',
+ ],
+ 'approval' => [
+ 'title' => 'š Merge Request Approval ā
- š¦:repo by :user',
+ ],
+ 'unapproval' => [
+ 'title' => 'š Merge Request Unapproval ā - š¦:repo by :user',
+ ],
+ 'update' => [
+ 'title' => 'š ļø Merge Request Updated - š¦:repo by :user',
+ ],
+];
diff --git a/lang/en/events/gitlab/note.php b/lang/en/events/gitlab/note.php
new file mode 100644
index 0000000..ad42f0b
--- /dev/null
+++ b/lang/en/events/gitlab/note.php
@@ -0,0 +1,12 @@
+ [
+ 'commit' => 'š¬ New Comment on Commit - š¦:repo by :user',
+ 'issue' => 'š¬ New Comment on Issue - š¦:repo by :user',
+ 'merge_request' => 'š¬ New Comment on Merge Request - š¦:repo by :user',
+ 'snippet' => 'š¬ New Comment on Snippet - š¦:repo by :user',
+ ],
+ 'view_comment' => 'š View Comment: :link',
+ 'snippet_comment' => 'View Comment on Snippet',
+];
diff --git a/lang/en/events/gitlab/push.php b/lang/en/events/gitlab/push.php
new file mode 100644
index 0000000..3c6cba5
--- /dev/null
+++ b/lang/en/events/gitlab/push.php
@@ -0,0 +1,9 @@
+ [
+ 'title' => 'š·āļø :count new :noun to š¦:repo::branch
',
+ 'commit' => '[:commit] :commit_message - by :commit_by',
+ 'pusher' => 'š¤ Pushed by : :name',
+ ],
+];
diff --git a/lang/en/events/gitlab/release.php b/lang/en/events/gitlab/release.php
new file mode 100644
index 0000000..d50cc0c
--- /dev/null
+++ b/lang/en/events/gitlab/release.php
@@ -0,0 +1,9 @@
+ [
+ 'create' => 'ā
š Release Created - š¦:repo by :user',
+ 'update' => 'šš Release Updated - š¦:repo by :user',
+ 'delete' => 'š«š Release Deleted - š¦:repo by :user',
+ ],
+];
diff --git a/lang/en/events/gitlab/tag_push.php b/lang/en/events/gitlab/tag_push.php
new file mode 100644
index 0000000..d405f85
--- /dev/null
+++ b/lang/en/events/gitlab/tag_push.php
@@ -0,0 +1,7 @@
+ 'āļø A new tag has been pushed to the project š¦:repo',
+ 'name' => 'š Tag Name: :tag_name',
+ 'pusher' => 'š¤ Pushed by: :pusher',
+];
diff --git a/lang/en/events/gitlab/wiki_page.php b/lang/en/events/gitlab/wiki_page.php
new file mode 100644
index 0000000..c700d96
--- /dev/null
+++ b/lang/en/events/gitlab/wiki_page.php
@@ -0,0 +1,10 @@
+ [
+ 'create' => 'š Wiki Page Created - š¦:repo by :user',
+ 'update' => 'š Wiki Page Updated - š¦:repo by :user',
+ 'delete' => 'š Wiki Page Deleted - š¦:repo by :user',
+ ],
+ 'name' => 'š Page Name: :name',
+];
diff --git a/lang/en/events/shared/gitlab.php b/lang/en/events/shared/gitlab.php
new file mode 100644
index 0000000..ce3f29f
--- /dev/null
+++ b/lang/en/events/shared/gitlab.php
@@ -0,0 +1,10 @@
+ [
+ 'title' => 'š Content:',
+ ],
+ '_assignee' => [
+ 'title' => 'š Assignee: ',
+ ],
+];
diff --git a/lang/ja/events/github/pull_request.php b/lang/ja/events/github/pull_request.php
index 8fdcf31..088ccb7 100644
--- a/lang/ja/events/github/pull_request.php
+++ b/lang/ja/events/github/pull_request.php
@@ -3,14 +3,14 @@
return [
'review' => 'š„ Reviewers: ',
'closed' => [
- 'title' => ':title - š¦:issue by :user',
+ 'title' => ':title - š¦:repo by :user',
'title_merged' => 'ā
Pull Request Merged',
- 'title_closed' => 'ā Pull Request Closed',
+ 'title_closed' => 'š« Pull Request Closed',
],
'opened' => [
- 'title' => 'š·āāļøš ļø New Pull Request - š¦:issue by :user',
+ 'title' => 'š·āāļøš ļø New Pull Request - š¦:repo by :user',
],
'reopened' => [
- 'title' => 'š·āāļøš ļø Reopened Pull Request - š¦:issue by :user',
+ 'title' => 'š·āāļøš ļø Reopened Pull Request - š¦:repo by :user',
],
];
diff --git a/lang/ja/events/github/push.php b/lang/ja/events/github/push.php
index cf34b67..e37a931 100644
--- a/lang/ja/events/github/push.php
+++ b/lang/ja/events/github/push.php
@@ -2,8 +2,8 @@
return [
'default' => [
- 'title' => 'š·āļø :count new :noun to š¦:user::branch
',
- 'commit' => ':commit: :commit_message - by :commit_name',
- 'pushed' => 'š¤ Pushed by : :name',
+ 'title' => 'š·āļø :count new :noun to š¦:repo::branch
',
+ 'commit' => '[:commit] :commit_message - by :commit_by',
+ 'pusher' => 'š¤ Pushed by : :name',
],
];
diff --git a/lang/ja/events/github/workflow_run.php b/lang/ja/events/github/workflow_run.php
index 4e895d4..f6cff4d 100644
--- a/lang/ja/events/github/workflow_run.php
+++ b/lang/ja/events/github/workflow_run.php
@@ -23,5 +23,5 @@
'title' => ' Workflow Requested form š¦:user',
'body' => 'Running workflow: š„ :name ā³',
],
- 'link' => 'š Link: :link',
+ 'link' => 'š Workflow run link: :link',
];
diff --git a/lang/ja/events/gitlab/feature_flag.php b/lang/ja/events/gitlab/feature_flag.php
new file mode 100644
index 0000000..4380727
--- /dev/null
+++ b/lang/ja/events/gitlab/feature_flag.php
@@ -0,0 +1,9 @@
+ [
+ 'enabled' => 'Feature Flag Enabled š¦:flag_tag by :user_tag',
+ 'disabled' => 'Feature Flag Disabled š¦:flag_tag by :user_tag',
+ ],
+ 'name' => 'Name: :flag_name',
+];
diff --git a/lang/ja/events/gitlab/issues.php b/lang/ja/events/gitlab/issues.php
new file mode 100644
index 0000000..a8959f2
--- /dev/null
+++ b/lang/ja/events/gitlab/issues.php
@@ -0,0 +1,28 @@
+ 'š¢',
+ 'closed' => [
+ 'title' => 'š« Issue Closed to š¦ :issue by :user',
+ ],
+ 'edited' => [
+ 'title' => 'ā ļø Issue has been edited to š¦ :issue by :user',
+ 'changes' => [
+ 'title' => [
+ 'name' => 'š Title has been changed',
+ 'from' => 'š From: :title_from',
+ 'to' => 'š· To: :title_to',
+ ],
+ 'body' => [
+ 'title' => 'š Body has been changed',
+ 'message' => 'Please check the issue for more details',
+ ],
+ ],
+ ],
+ 'opened' => [
+ 'title' => 'ā ļø New Issue to š¦ :issue by :user',
+ ],
+ 'reopened' => [
+ 'title' => 'ā ļø Issue has been reopened ā ļø to š¦ :issue by :user',
+ ],
+];
diff --git a/lang/ja/events/gitlab/merge_request.php b/lang/ja/events/gitlab/merge_request.php
new file mode 100644
index 0000000..f333adb
--- /dev/null
+++ b/lang/ja/events/gitlab/merge_request.php
@@ -0,0 +1,32 @@
+ 'š„ Reviewers: ',
+ 'closed' => [
+ 'title' => 'š« Merge Request Closed - š¦:repo by :user',
+ ],
+ 'merged' => [
+ 'title' => 'ā
Merge Request Merged - š¦:repo by :user',
+ ],
+ 'opened' => [
+ 'title' => 'š·āāļøš ļø New Merge Request - š¦:repo by :user',
+ ],
+ 'reopened' => [
+ 'title' => 'š·āāļøš ļø Merge Request Reopened - š¦:repo by :user',
+ ],
+ 'approved' => [
+ 'title' => 'š Merge Request Approved ā
- š¦:repo by :user',
+ ],
+ 'unapproved' => [
+ 'title' => 'š Merge Request Unapproved ā - š¦:repo by :user',
+ ],
+ 'approval' => [
+ 'title' => 'š Merge Request Approval ā
- š¦:repo by :user',
+ ],
+ 'unapproval' => [
+ 'title' => 'š Merge Request Unapproval ā - š¦:repo by :user',
+ ],
+ 'update' => [
+ 'title' => 'š ļø Merge Request Updated - š¦:repo by :user',
+ ],
+];
diff --git a/lang/ja/events/gitlab/note.php b/lang/ja/events/gitlab/note.php
new file mode 100644
index 0000000..ad42f0b
--- /dev/null
+++ b/lang/ja/events/gitlab/note.php
@@ -0,0 +1,12 @@
+ [
+ 'commit' => 'š¬ New Comment on Commit - š¦:repo by :user',
+ 'issue' => 'š¬ New Comment on Issue - š¦:repo by :user',
+ 'merge_request' => 'š¬ New Comment on Merge Request - š¦:repo by :user',
+ 'snippet' => 'š¬ New Comment on Snippet - š¦:repo by :user',
+ ],
+ 'view_comment' => 'š View Comment: :link',
+ 'snippet_comment' => 'View Comment on Snippet',
+];
diff --git a/lang/ja/events/gitlab/push.php b/lang/ja/events/gitlab/push.php
new file mode 100644
index 0000000..3c6cba5
--- /dev/null
+++ b/lang/ja/events/gitlab/push.php
@@ -0,0 +1,9 @@
+ [
+ 'title' => 'š·āļø :count new :noun to š¦:repo::branch
',
+ 'commit' => '[:commit] :commit_message - by :commit_by',
+ 'pusher' => 'š¤ Pushed by : :name',
+ ],
+];
diff --git a/lang/ja/events/gitlab/release.php b/lang/ja/events/gitlab/release.php
new file mode 100644
index 0000000..d50cc0c
--- /dev/null
+++ b/lang/ja/events/gitlab/release.php
@@ -0,0 +1,9 @@
+ [
+ 'create' => 'ā
š Release Created - š¦:repo by :user',
+ 'update' => 'šš Release Updated - š¦:repo by :user',
+ 'delete' => 'š«š Release Deleted - š¦:repo by :user',
+ ],
+];
diff --git a/lang/ja/events/gitlab/tag_push.php b/lang/ja/events/gitlab/tag_push.php
new file mode 100644
index 0000000..d405f85
--- /dev/null
+++ b/lang/ja/events/gitlab/tag_push.php
@@ -0,0 +1,7 @@
+ 'āļø A new tag has been pushed to the project š¦:repo',
+ 'name' => 'š Tag Name: :tag_name',
+ 'pusher' => 'š¤ Pushed by: :pusher',
+];
diff --git a/lang/ja/events/gitlab/wiki_page.php b/lang/ja/events/gitlab/wiki_page.php
new file mode 100644
index 0000000..c700d96
--- /dev/null
+++ b/lang/ja/events/gitlab/wiki_page.php
@@ -0,0 +1,10 @@
+ [
+ 'create' => 'š Wiki Page Created - š¦:repo by :user',
+ 'update' => 'š Wiki Page Updated - š¦:repo by :user',
+ 'delete' => 'š Wiki Page Deleted - š¦:repo by :user',
+ ],
+ 'name' => 'š Page Name: :name',
+];
diff --git a/lang/ja/events/shared/gitlab.php b/lang/ja/events/shared/gitlab.php
new file mode 100644
index 0000000..ce3f29f
--- /dev/null
+++ b/lang/ja/events/shared/gitlab.php
@@ -0,0 +1,10 @@
+ [
+ 'title' => 'š Content:',
+ ],
+ '_assignee' => [
+ 'title' => 'š Assignee: ',
+ ],
+];
diff --git a/lang/vi/events/github/pull_request.php b/lang/vi/events/github/pull_request.php
index 8fdcf31..088ccb7 100644
--- a/lang/vi/events/github/pull_request.php
+++ b/lang/vi/events/github/pull_request.php
@@ -3,14 +3,14 @@
return [
'review' => 'š„ Reviewers: ',
'closed' => [
- 'title' => ':title - š¦:issue by :user',
+ 'title' => ':title - š¦:repo by :user',
'title_merged' => 'ā
Pull Request Merged',
- 'title_closed' => 'ā Pull Request Closed',
+ 'title_closed' => 'š« Pull Request Closed',
],
'opened' => [
- 'title' => 'š·āāļøš ļø New Pull Request - š¦:issue by :user',
+ 'title' => 'š·āāļøš ļø New Pull Request - š¦:repo by :user',
],
'reopened' => [
- 'title' => 'š·āāļøš ļø Reopened Pull Request - š¦:issue by :user',
+ 'title' => 'š·āāļøš ļø Reopened Pull Request - š¦:repo by :user',
],
];
diff --git a/lang/vi/events/github/push.php b/lang/vi/events/github/push.php
index cf34b67..e37a931 100644
--- a/lang/vi/events/github/push.php
+++ b/lang/vi/events/github/push.php
@@ -2,8 +2,8 @@
return [
'default' => [
- 'title' => 'š·āļø :count new :noun to š¦:user::branch
',
- 'commit' => ':commit: :commit_message - by :commit_name',
- 'pushed' => 'š¤ Pushed by : :name',
+ 'title' => 'š·āļø :count new :noun to š¦:repo::branch
',
+ 'commit' => '[:commit] :commit_message - by :commit_by',
+ 'pusher' => 'š¤ Pushed by : :name',
],
];
diff --git a/lang/vi/events/github/workflow_run.php b/lang/vi/events/github/workflow_run.php
index 4e895d4..f6cff4d 100644
--- a/lang/vi/events/github/workflow_run.php
+++ b/lang/vi/events/github/workflow_run.php
@@ -23,5 +23,5 @@
'title' => ' Workflow Requested form š¦:user',
'body' => 'Running workflow: š„ :name ā³',
],
- 'link' => 'š Link: :link',
+ 'link' => 'š Workflow run link: :link',
];
diff --git a/lang/vi/events/gitlab/feature_flag.php b/lang/vi/events/gitlab/feature_flag.php
new file mode 100644
index 0000000..4380727
--- /dev/null
+++ b/lang/vi/events/gitlab/feature_flag.php
@@ -0,0 +1,9 @@
+ [
+ 'enabled' => 'Feature Flag Enabled š¦:flag_tag by :user_tag',
+ 'disabled' => 'Feature Flag Disabled š¦:flag_tag by :user_tag',
+ ],
+ 'name' => 'Name: :flag_name',
+];
diff --git a/lang/vi/events/gitlab/issues.php b/lang/vi/events/gitlab/issues.php
new file mode 100644
index 0000000..a8959f2
--- /dev/null
+++ b/lang/vi/events/gitlab/issues.php
@@ -0,0 +1,28 @@
+ 'š¢',
+ 'closed' => [
+ 'title' => 'š« Issue Closed to š¦ :issue by :user',
+ ],
+ 'edited' => [
+ 'title' => 'ā ļø Issue has been edited to š¦ :issue by :user',
+ 'changes' => [
+ 'title' => [
+ 'name' => 'š Title has been changed',
+ 'from' => 'š From: :title_from',
+ 'to' => 'š· To: :title_to',
+ ],
+ 'body' => [
+ 'title' => 'š Body has been changed',
+ 'message' => 'Please check the issue for more details',
+ ],
+ ],
+ ],
+ 'opened' => [
+ 'title' => 'ā ļø New Issue to š¦ :issue by :user',
+ ],
+ 'reopened' => [
+ 'title' => 'ā ļø Issue has been reopened ā ļø to š¦ :issue by :user',
+ ],
+];
diff --git a/lang/vi/events/gitlab/merge_request.php b/lang/vi/events/gitlab/merge_request.php
new file mode 100644
index 0000000..f333adb
--- /dev/null
+++ b/lang/vi/events/gitlab/merge_request.php
@@ -0,0 +1,32 @@
+ 'š„ Reviewers: ',
+ 'closed' => [
+ 'title' => 'š« Merge Request Closed - š¦:repo by :user',
+ ],
+ 'merged' => [
+ 'title' => 'ā
Merge Request Merged - š¦:repo by :user',
+ ],
+ 'opened' => [
+ 'title' => 'š·āāļøš ļø New Merge Request - š¦:repo by :user',
+ ],
+ 'reopened' => [
+ 'title' => 'š·āāļøš ļø Merge Request Reopened - š¦:repo by :user',
+ ],
+ 'approved' => [
+ 'title' => 'š Merge Request Approved ā
- š¦:repo by :user',
+ ],
+ 'unapproved' => [
+ 'title' => 'š Merge Request Unapproved ā - š¦:repo by :user',
+ ],
+ 'approval' => [
+ 'title' => 'š Merge Request Approval ā
- š¦:repo by :user',
+ ],
+ 'unapproval' => [
+ 'title' => 'š Merge Request Unapproval ā - š¦:repo by :user',
+ ],
+ 'update' => [
+ 'title' => 'š ļø Merge Request Updated - š¦:repo by :user',
+ ],
+];
diff --git a/lang/vi/events/gitlab/note.php b/lang/vi/events/gitlab/note.php
new file mode 100644
index 0000000..ad42f0b
--- /dev/null
+++ b/lang/vi/events/gitlab/note.php
@@ -0,0 +1,12 @@
+ [
+ 'commit' => 'š¬ New Comment on Commit - š¦:repo by :user',
+ 'issue' => 'š¬ New Comment on Issue - š¦:repo by :user',
+ 'merge_request' => 'š¬ New Comment on Merge Request - š¦:repo by :user',
+ 'snippet' => 'š¬ New Comment on Snippet - š¦:repo by :user',
+ ],
+ 'view_comment' => 'š View Comment: :link',
+ 'snippet_comment' => 'View Comment on Snippet',
+];
diff --git a/lang/vi/events/gitlab/push.php b/lang/vi/events/gitlab/push.php
new file mode 100644
index 0000000..3c6cba5
--- /dev/null
+++ b/lang/vi/events/gitlab/push.php
@@ -0,0 +1,9 @@
+ [
+ 'title' => 'š·āļø :count new :noun to š¦:repo::branch
',
+ 'commit' => '[:commit] :commit_message - by :commit_by',
+ 'pusher' => 'š¤ Pushed by : :name',
+ ],
+];
diff --git a/lang/vi/events/gitlab/release.php b/lang/vi/events/gitlab/release.php
new file mode 100644
index 0000000..d50cc0c
--- /dev/null
+++ b/lang/vi/events/gitlab/release.php
@@ -0,0 +1,9 @@
+ [
+ 'create' => 'ā
š Release Created - š¦:repo by :user',
+ 'update' => 'šš Release Updated - š¦:repo by :user',
+ 'delete' => 'š«š Release Deleted - š¦:repo by :user',
+ ],
+];
diff --git a/lang/vi/events/gitlab/tag_push.php b/lang/vi/events/gitlab/tag_push.php
new file mode 100644
index 0000000..d405f85
--- /dev/null
+++ b/lang/vi/events/gitlab/tag_push.php
@@ -0,0 +1,7 @@
+ 'āļø A new tag has been pushed to the project š¦:repo',
+ 'name' => 'š Tag Name: :tag_name',
+ 'pusher' => 'š¤ Pushed by: :pusher',
+];
diff --git a/lang/vi/events/gitlab/wiki_page.php b/lang/vi/events/gitlab/wiki_page.php
new file mode 100644
index 0000000..c700d96
--- /dev/null
+++ b/lang/vi/events/gitlab/wiki_page.php
@@ -0,0 +1,10 @@
+ [
+ 'create' => 'š Wiki Page Created - š¦:repo by :user',
+ 'update' => 'š Wiki Page Updated - š¦:repo by :user',
+ 'delete' => 'š Wiki Page Deleted - š¦:repo by :user',
+ ],
+ 'name' => 'š Page Name: :name',
+];
diff --git a/lang/vi/events/shared/gitlab.php b/lang/vi/events/shared/gitlab.php
new file mode 100644
index 0000000..ce3f29f
--- /dev/null
+++ b/lang/vi/events/shared/gitlab.php
@@ -0,0 +1,10 @@
+ [
+ 'title' => 'š Content:',
+ ],
+ '_assignee' => [
+ 'title' => 'š Assignee: ',
+ ],
+];
diff --git a/resources/views/events/github/issue_comment/created.blade.php b/resources/views/events/github/issue_comment/created.blade.php
index 3e43030..f030b37 100644
--- a/resources/views/events/github/issue_comment/created.blade.php
+++ b/resources/views/events/github/issue_comment/created.blade.php
@@ -1,6 +1,6 @@
diff --git a/resources/views/events/github/pull_request/closed.blade.php b/resources/views/events/github/pull_request/closed.blade.php
index 61df4b7..b93cdb3 100644
--- a/resources/views/events/github/pull_request/closed.blade.php
+++ b/resources/views/events/github/pull_request/closed.blade.php
@@ -1,6 +1,6 @@
{!! __('tg-notifier::events/github/pull_request.closed.title', [
- 'title' => $message,
- 'issue' => "{$payload->repository->full_name}#$pull_request->number",
- 'user' => "@{$pull_request->user->login}"
- ]
- ) !!}
+ 'title' => $message,
+ 'repo' => "{$payload->repository->full_name}#$pull_request->number",
+ 'user' => "@{$pull_request->user->login}"
+ ]) !!}
š¢ {{ $pull_request->title }}
diff --git a/resources/views/events/github/pull_request/opened.blade.php b/resources/views/events/github/pull_request/opened.blade.php
index c63abe1..7b8d443 100644
--- a/resources/views/events/github/pull_request/opened.blade.php
+++ b/resources/views/events/github/pull_request/opened.blade.php
@@ -1,6 +1,6 @@
{!! __('tg-notifier::events/github/pull_request.opened.title', [
- 'issue' => "{$payload->repository->full_name}#$pull_request->number",
+ 'repo' => "{$payload->repository->full_name}#$pull_request->number",
'user' => "@{$pull_request->user->login}"
]
) !!}
diff --git a/resources/views/events/github/pull_request/partials/_reviewers.blade.php b/resources/views/events/github/pull_request/partials/_reviewers.blade.php
index 78dbe1e..b601647 100644
--- a/resources/views/events/github/pull_request/partials/_reviewers.blade.php
+++ b/resources/views/events/github/pull_request/partials/_reviewers.blade.php
@@ -1,6 +1,6 @@
{!! __('tg-notifier::events/github/pull_request.reopened.title', [
- 'issue' => "{$payload->repository->full_name}#$pull_request->number",
+ 'repo' => "{$payload->repository->full_name}#$pull_request->number",
'user' => "@{$pull_request->user->login}"
]
) !!}
diff --git a/resources/views/events/github/pull_request_review/dismissed.blade.php b/resources/views/events/github/pull_request_review/dismissed.blade.php
index 41705ca..5f2015b 100644
--- a/resources/views/events/github/pull_request_review/dismissed.blade.php
+++ b/resources/views/events/github/pull_request_review/dismissed.blade.php
@@ -1,6 +1,6 @@
pull_request;
diff --git a/resources/views/events/github/pull_request_review/submitted.blade.php b/resources/views/events/github/pull_request_review/submitted.blade.php
index cb7c82e..bd04fb6 100644
--- a/resources/views/events/github/pull_request_review/submitted.blade.php
+++ b/resources/views/events/github/pull_request_review/submitted.blade.php
@@ -1,6 +1,6 @@
pull_request;
diff --git a/resources/views/events/github/push/default.blade.php b/resources/views/events/github/push/default.blade.php
index e3c66dd..b1c2248 100644
--- a/resources/views/events/github/push/default.blade.php
+++ b/resources/views/events/github/push/default.blade.php
@@ -1,6 +1,6 @@
commits);
@@ -13,21 +13,21 @@
{!! __('tg-notifier::events/github/push.default.title', [
'count' => $count,
'noun' => $noun,
- 'user' => $payload->repository->full_name,
+ 'repo' => $payload->repository->full_name,
'branch' => $branch,
]
) !!}
@foreach($payload->commits as $commit)
- @php
- $commitId = substr($commit->id, -7);
- @endphp
+@php
+ $commitId = substr($commit->id, -7);
+@endphp
{!! __('tg-notifier::events/github/push.default.commit', [
'commit' => "$commitId",
'commit_message' => $commit->message,
- 'commit_name' => $commit->author->name,
+ 'commit_by' => $commit->author->name,
]
) !!}
@endforeach
-{!! __('tg-notifier::events/github/push.default.pushed', ['name' => $payload->pusher->name]) !!}
+{!! __('tg-notifier::events/github/push.default.pusher', ['name' => $payload->pusher->name]) !!}
diff --git a/resources/views/events/github/watch/started.blade.php b/resources/views/events/github/watch/started.blade.php
index f0a8f02..af603be 100644
--- a/resources/views/events/github/watch/started.blade.php
+++ b/resources/views/events/github/watch/started.blade.php
@@ -1,6 +1,6 @@
diff --git a/resources/views/events/github/workflow_job/completed.blade.php b/resources/views/events/github/workflow_job/completed.blade.php
index 99a183d..17aebad 100644
--- a/resources/views/events/github/workflow_job/completed.blade.php
+++ b/resources/views/events/github/workflow_job/completed.blade.php
@@ -1,6 +1,6 @@
diff --git a/resources/views/events/github/workflow_job/in_progress.blade.php b/resources/views/events/github/workflow_job/in_progress.blade.php
index 53a953e..8b4f626 100644
--- a/resources/views/events/github/workflow_job/in_progress.blade.php
+++ b/resources/views/events/github/workflow_job/in_progress.blade.php
@@ -1,6 +1,6 @@
diff --git a/resources/views/events/github/workflow_job/queued.blade.php b/resources/views/events/github/workflow_job/queued.blade.php
index cc22c08..24c0a95 100644
--- a/resources/views/events/github/workflow_job/queued.blade.php
+++ b/resources/views/events/github/workflow_job/queued.blade.php
@@ -1,6 +1,6 @@
diff --git a/resources/views/events/github/workflow_run/completed.blade.php b/resources/views/events/github/workflow_run/completed.blade.php
index 7da1975..2b564e1 100644
--- a/resources/views/events/github/workflow_run/completed.blade.php
+++ b/resources/views/events/github/workflow_run/completed.blade.php
@@ -1,6 +1,6 @@
@@ -9,25 +9,21 @@
{!! __('tg-notifier::events/github/workflow_run.completed.success.title', ['user' => "{$payload->repository->full_name}"]) !!}
{!! __('tg-notifier::events/github/workflow_run.completed.success.body', ['name' => $payload->workflow_run->name]) !!}
-
@break
@case('failure')
{!! __('tg-notifier::events/github/workflow_run.completed.failure.title', ['user' => "{$payload->repository->full_name}"]) !!}
{!! __('tg-notifier::events/github/workflow_run.completed.failure.body', ['name' => $payload->workflow_run->name]) !!}
-
@break
@case('cancelled')
{!! __('tg-notifier::events/github/workflow_run.completed.cancelled.title', ['user' => "{$payload->repository->full_name}"]) !!}
{!! __('tg-notifier::events/github/workflow_run.completed.cancelled.body', ['name' => $payload->workflow_run->name]) !!}
-
@break
@default
{!! __('tg-notifier::events/github/workflow_run.completed.default.title', ['user' => "{$payload->repository->full_name}"]) !!}
{!! __('tg-notifier::events/github/workflow_run.completed.default.body', ['name' => $payload->workflow_run->name]) !!}
-
@break
@endswitch
diff --git a/resources/views/events/github/workflow_run/requested.blade.php b/resources/views/events/github/workflow_run/requested.blade.php
index 1db14fc..75b4778 100644
--- a/resources/views/events/github/workflow_run/requested.blade.php
+++ b/resources/views/events/github/workflow_run/requested.blade.php
@@ -1,6 +1,6 @@
diff --git a/resources/views/events/gitlab/feature_flag/default.blade.php b/resources/views/events/gitlab/feature_flag/default.blade.php
index 1229495..4014d6a 100644
--- a/resources/views/events/gitlab/feature_flag/default.blade.php
+++ b/resources/views/events/gitlab/feature_flag/default.blade.php
@@ -1,22 +1,27 @@
project->web_url."/-/feature_flags/".$payload->object_attributes->id;
+$flatTag = "{$payload->project->path_with_namespace}#{$payload->object_attributes->name}";
+$userTag = "user_url}\">{$payload->user->name}";
+
if ($payload->object_attributes->active) {
- $active = "Enabled";
+ $active = "enabled";
$icon = "š©";
} else {
- $active = "Disabled";
+ $active = "disabled";
$icon = "š“";
}
+?>
-$flagUrl = $payload->project->web_url . "/-/feature_flags/" . $payload->object_attributes->id;
-
-$message = "{$icon} Feature Flag {$active} - š¦{$payload->project->path_with_namespace}#{$payload->object_attributes->name} by user_url}\">{$payload->user->name}\n\n";
-
-$message .= "{$icon} Name: {$payload->object_attributes->name} \n\n";
+{!! $icon !!} {!! __('tg-notifier::events/gitlab/feature_flag.title'.$active, [
+ 'flag_tag' => $flagTag,
+ 'user_tag' => $userTag,
+ ]) !!}
-$message .= require __DIR__ . '/../../shared/partials/gitlab/_body.php';
+{!! $icon !!} {!! __('tg-notifier::events/gitlab/feature_flag.name', ['flag_name' => $payload->object_attributes->name]) !!}
-echo $message;
+@include('tg-notifier::events.shared.partials.gitlab._body', compact('payload', 'event'))
diff --git a/resources/views/events/gitlab/issue/close.blade.php b/resources/views/events/gitlab/issue/close.blade.php
index 1ee4703..f29edd2 100644
--- a/resources/views/events/gitlab/issue/close.blade.php
+++ b/resources/views/events/gitlab/issue/close.blade.php
@@ -1,14 +1,17 @@
Issue Closed to š¦object_attributes->url}\">{$payload->project->path_with_namespace}#{$payload->object_attributes->id} by {$payload->user->name}\n\n";
+?>
+{!! __('tg-notifier::events/gitlab/issues.closed.title', [
+ 'issue' => "{$payload->project->path_with_namespace}#{$payload->object_attributes->id}",
+ 'user' => "{$payload->user->name}"
+ ]
+ ) !!}
-$message .= "š¢ {$payload->object_attributes->title}\n";
+š¢ {{ $payload->object_attributes->title }}
-$message .= require __DIR__ . '/../../shared/partials/gitlab/_assignees.php';
-
-$message .= require __DIR__ . '/../../shared/partials/gitlab/_body.php';
-
-echo $message;
+@include('tg-notifier::events.shared.partials.gitlab._assignees', compact('payload', 'event'))
+@include('tg-notifier::events.shared.partials.gitlab._body', compact('payload', 'event'))
diff --git a/resources/views/events/gitlab/issue/open.blade.php b/resources/views/events/gitlab/issue/open.blade.php
index 5ee93a3..f36dce8 100644
--- a/resources/views/events/gitlab/issue/open.blade.php
+++ b/resources/views/events/gitlab/issue/open.blade.php
@@ -1,14 +1,17 @@
New Issue to š¦object_attributes->url}\">{$payload->project->path_with_namespace}#{$payload->object_attributes->id} created by {$payload->user->name}\n\n";
+?>
+{!! __('tg-notifier::events/gitlab/issues.opened.title', [
+ 'issue' => "{$payload->project->path_with_namespace}#{$payload->object_attributes->id}",
+ 'user' => "{$payload->user->name}"
+ ]
+ ) !!}
-$message .= "š¢ {$payload->object_attributes->title}\n";
+š¢ {{ $payload->object_attributes->title }}
-$message .= require __DIR__ . '/../../shared/partials/gitlab/_assignees.php';
-
-$message .= require __DIR__ . '/../../shared/partials/gitlab/_body.php';
-
-echo $message;
+@include('tg-notifier::events.shared.partials.gitlab._assignees', compact('payload', 'event'))
+@include('tg-notifier::events.shared.partials.gitlab._body', compact('payload', 'event'))
diff --git a/resources/views/events/gitlab/issue/reopen.blade.php b/resources/views/events/gitlab/issue/reopen.blade.php
index 231fc7a..71fdba3 100644
--- a/resources/views/events/gitlab/issue/reopen.blade.php
+++ b/resources/views/events/gitlab/issue/reopen.blade.php
@@ -1,14 +1,17 @@
Issue has been reopened ā ļø to š¦object_attributes->url}\">{$payload->project->path_with_namespace}#{$payload->object_attributes->id} by {$payload->user->name}\n\n";
+?>
+{!! __('tg-notifier::events/gitlab/issues.reopened.title', [
+ 'issue' => "{$payload->project->path_with_namespace}#{$payload->object_attributes->id}",
+ 'user' => "{$payload->user->name}"
+ ]
+ ) !!}
-$message .= "š¢ {$payload->object_attributes->title}\n";
+š¢ {{ $payload->object_attributes->title }}
-$message .= require __DIR__ . '/../../shared/partials/gitlab/_assignees.php';
-
-$message .= require __DIR__ . '/../../shared/partials/gitlab/_body.php';
-
-echo $message;
+@include('tg-notifier::events.shared.partials.gitlab._assignees', compact('payload', 'event'))
+@include('tg-notifier::events.shared.partials.gitlab._body', compact('payload', 'event'))
diff --git a/resources/views/events/gitlab/issue/update.blade.php b/resources/views/events/gitlab/issue/update.blade.php
index eb23e72..d528d82 100644
--- a/resources/views/events/gitlab/issue/update.blade.php
+++ b/resources/views/events/gitlab/issue/update.blade.php
@@ -1,14 +1,26 @@
Issue has been edited to š¦object_attributes->url}\">{$payload->project->path_with_namespace}#{$payload->object_attributes->id} by {$payload->user->name}\n\n";
+?>
+{!! __('tg-notifier::events/gitlab/issues.edited.title', [
+ 'issue' => "{$payload->project->path_with_namespace}#{$payload->object_attributes->id}",
+ 'user' => "{$payload->user->name}"
+ ]
+ ) !!}
-$message .= "š¢ {$payload->object_attributes->title}\n";
+š¢ {{ $payload->object_attributes->title }}
-$message .= require __DIR__ . '/../../shared/partials/gitlab/_assignees.php';
+@include('tg-notifier::events.shared.partials.gitlab._assignees', compact('payload', 'event'))
-$message .= require __DIR__ . '/../../shared/partials/gitlab/_body.php';
-
-echo $message;
+@if(isset($payload->changes->title))
+{!! __('tg-notifier::events/gitlab/issues.edited.changes.title.name') !!}
+ {!! __('tg-notifier::events/gitlab/issues.edited.changes.title.from', ['title_from' => $payload->changes->title->previous]) !!}
+ {!! __('tg-notifier::events/gitlab/issues.edited.changes.title.to', ['title_to' => $payload->changes->title->current]) !!}
+@endif
+@if(isset($payload->changes->description))
+{!! __('tg-notifier::events/gitlab/issues.edited.changes.body.title') !!}
+ {!! __('tg-notifier::events/gitlab/issues.edited.changes.body.message') !!}
+@endif
diff --git a/resources/views/events/gitlab/merge_request/approval.blade.php b/resources/views/events/gitlab/merge_request/approval.blade.php
new file mode 100644
index 0000000..9d6fe90
--- /dev/null
+++ b/resources/views/events/gitlab/merge_request/approval.blade.php
@@ -0,0 +1,18 @@
+
+{!! __('tg-notifier::events/gitlab/merge_request.approval.title', [
+ 'repo' => "{$payload->project->path_with_namespace}#{$payload->object_attributes->iid}",
+ 'user' => "{$payload->user->name}"
+ ]) !!}
+
+š {{ $payload->object_attributes->title }}
+
+š³ {{ $payload->object_attributes->source_branch }} -> {{ $payload->object_attributes->target_branch }} šÆ
+@include('tg-notifier::events.shared.partials.gitlab._assignees', compact('payload', 'event'))
+@include('tg-notifier::events.gitlab.merge_request.partials._reviewers', compact('payload'))
+@include('tg-notifier::events.shared.partials.gitlab._body', compact('payload', 'event'))
diff --git a/resources/views/events/gitlab/merge_request/approved.blade.php b/resources/views/events/gitlab/merge_request/approved.blade.php
index 401556b..b29b190 100644
--- a/resources/views/events/gitlab/merge_request/approved.blade.php
+++ b/resources/views/events/gitlab/merge_request/approved.blade.php
@@ -1,18 +1,18 @@
Merge Request Approved to š¦object_attributes->url}\">{$payload->project->path_with_namespace}#{$payload->object_attributes->iid} by {$payload->user->name}\n\n";
+?>
+{!! __('tg-notifier::events/gitlab/merge_request.approved.title', [
+ 'repo' => "{$payload->project->path_with_namespace}#{$payload->object_attributes->iid}",
+ 'user' => "{$payload->user->name}"
+ ]) !!}
-$message .= "š {$payload->object_attributes->title} \n\n";
+š {{ $payload->object_attributes->title }}
-$message .= "š³ {$payload->object_attributes->source_branch} -> {$payload->object_attributes->target_branch} šÆ \n";
-
-$message .= require __DIR__ . '/../../shared/partials/gitlab/_assignees.php';
-
-$message .= require __DIR__ . '/partials/_reviewers.php';
-
-$message .= require __DIR__ . '/../../shared/partials/gitlab/_body.php';
-
-echo $message;
+š³ {{ $payload->object_attributes->source_branch }} -> {{ $payload->object_attributes->target_branch }} šÆ
+@include('tg-notifier::events.shared.partials.gitlab._assignees', compact('payload', 'event'))
+@include('tg-notifier::events.gitlab.merge_request.partials._reviewers', compact('payload'))
+@include('tg-notifier::events.shared.partials.gitlab._body', compact('payload', 'event'))
diff --git a/resources/views/events/gitlab/merge_request/close.blade.php b/resources/views/events/gitlab/merge_request/close.blade.php
index 612677f..1478ab7 100644
--- a/resources/views/events/gitlab/merge_request/close.blade.php
+++ b/resources/views/events/gitlab/merge_request/close.blade.php
@@ -1,18 +1,18 @@
Close Merge Request - š¦object_attributes->url}\">{$payload->project->path_with_namespace}#{$payload->object_attributes->iid} by {$payload->user->name}\n\n";
+?>
+{!! __('tg-notifier::events/gitlab/merge_request.closed.title', [
+ 'repo' => "{$payload->project->path_with_namespace}#{$payload->object_attributes->iid}",
+ 'user' => "{$payload->user->name}"
+ ]) !!}
-$message .= "š {$payload->object_attributes->title} \n\n";
+š {{ $payload->object_attributes->title }}
-$message .= "š³ {$payload->object_attributes->source_branch} -> {$payload->object_attributes->target_branch} šÆ \n";
-
-$message .= require __DIR__ . '/../../shared/partials/gitlab/_assignees.php';
-
-$message .= require __DIR__ . '/partials/_reviewers.php';
-
-$message .= require __DIR__ . '/../../shared/partials/gitlab/_body.php';
-
-echo $message;
+š³ {{ $payload->object_attributes->source_branch }} -> {{ $payload->object_attributes->target_branch }} šÆ
+@include('tg-notifier::events.shared.partials.gitlab._assignees', compact('payload', 'event'))
+@include('tg-notifier::events.gitlab.merge_request.partials._reviewers', compact('payload'))
+@include('tg-notifier::events.shared.partials.gitlab._body', compact('payload', 'event'))
diff --git a/resources/views/events/gitlab/merge_request/merge.blade.php b/resources/views/events/gitlab/merge_request/merge.blade.php
index d653cb9..039860e 100644
--- a/resources/views/events/gitlab/merge_request/merge.blade.php
+++ b/resources/views/events/gitlab/merge_request/merge.blade.php
@@ -1,18 +1,18 @@
Merge Request Merged to š¦object_attributes->url}\">{$payload->project->path_with_namespace}#{$payload->object_attributes->iid} by {$payload->user->name}\n\n";
+?>
+{!! __('tg-notifier::events/gitlab/merge_request.merged.title', [
+ 'repo' => "{$payload->project->path_with_namespace}#{$payload->object_attributes->iid}",
+ 'user' => "{$payload->user->name}"
+ ]) !!}
-$message .= "š {$payload->object_attributes->title} \n\n";
+š {{ $payload->object_attributes->title }}
-$message .= "š³ {$payload->object_attributes->source_branch} -> {$payload->object_attributes->target_branch} šÆ \n";
-
-$message .= require __DIR__ . '/../../shared/partials/gitlab/_assignees.php';
-
-$message .= require __DIR__ . '/partials/_reviewers.php';
-
-$message .= require __DIR__ . '/../../shared/partials/gitlab/_body.php';
-
-echo $message;
+š³ {{ $payload->object_attributes->source_branch }} -> {{ $payload->object_attributes->target_branch }} šÆ
+@include('tg-notifier::events.shared.partials.gitlab._assignees', compact('payload', 'event'))
+@include('tg-notifier::events.gitlab.merge_request.partials._reviewers', compact('payload'))
+@include('tg-notifier::events.shared.partials.gitlab._body', compact('payload', 'event'))
diff --git a/resources/views/events/gitlab/merge_request/open.blade.php b/resources/views/events/gitlab/merge_request/open.blade.php
index d5a6efd..287dab7 100644
--- a/resources/views/events/gitlab/merge_request/open.blade.php
+++ b/resources/views/events/gitlab/merge_request/open.blade.php
@@ -1,18 +1,18 @@
Merge Request Opened to š¦object_attributes->url}\">{$payload->project->path_with_namespace}#{$payload->object_attributes->iid} by {$payload->user->name}\n\n";
+?>
+{!! __('tg-notifier::events/gitlab/merge_request.opened.title', [
+ 'repo' => "{$payload->project->path_with_namespace}#{$payload->object_attributes->iid}",
+ 'user' => "{$payload->user->name}"
+ ]) !!}
-$message .= "š {$payload->object_attributes->title} \n\n";
+š {{ $payload->object_attributes->title }}
-$message .= "š³ {$payload->object_attributes->source_branch} -> {$payload->object_attributes->target_branch} šÆ \n";
-
-$message .= require __DIR__ . '/../../shared/partials/gitlab/_assignees.php';
-
-$message .= require __DIR__ . '/partials/_reviewers.php';
-
-$message .= require __DIR__ . '/../../shared/partials/gitlab/_body.php';
-
-echo $message;
+š³ {{ $payload->object_attributes->source_branch }} -> {{ $payload->object_attributes->target_branch }} šÆ
+@include('tg-notifier::events.shared.partials.gitlab._assignees', compact('payload', 'event'))
+@include('tg-notifier::events.gitlab.merge_request.partials._reviewers', compact('payload'))
+@include('tg-notifier::events.shared.partials.gitlab._body', compact('payload', 'event'))
diff --git a/resources/views/events/gitlab/merge_request/partials/_reviewers.blade.php b/resources/views/events/gitlab/merge_request/partials/_reviewers.blade.php
index 0dfbfa8..4ea3759 100644
--- a/resources/views/events/gitlab/merge_request/partials/_reviewers.blade.php
+++ b/resources/views/events/gitlab/merge_request/partials/_reviewers.blade.php
@@ -1,6 +1,6 @@
{$reviewer->name}";
}
- $textReviewers .= "š„ Reviewers: " . implode(', ', $reviewers) . "\n";
+ $textReviewers .= __('tg-notifier::events/gitlab/merge_request.review') . implode(', ', $reviewers);
}
-
-return $textReviewers;
+?>
+{!! $textReviewers !!}
diff --git a/resources/views/events/gitlab/merge_request/reopen.blade.php b/resources/views/events/gitlab/merge_request/reopen.blade.php
index d990d52..c33cb93 100644
--- a/resources/views/events/gitlab/merge_request/reopen.blade.php
+++ b/resources/views/events/gitlab/merge_request/reopen.blade.php
@@ -1,18 +1,18 @@
Merge Request Reopened to š¦object_attributes->url}\">{$payload->project->path_with_namespace}#{$payload->object_attributes->iid} by {$payload->user->name}\n\n";
+?>
+{!! __('tg-notifier::events/gitlab/merge_request.reopened.title', [
+ 'repo' => "{$payload->project->path_with_namespace}#{$payload->object_attributes->iid}",
+ 'user' => "{$payload->user->name}"
+ ]) !!}
-$message .= "š {$payload->object_attributes->title} \n\n";
+š {{ $payload->object_attributes->title }}
-$message .= "š³ {$payload->object_attributes->source_branch} -> {$payload->object_attributes->target_branch} šÆ \n";
-
-$message .= require __DIR__ . '/../../shared/partials/gitlab/_assignees.php';
-
-$message .= require __DIR__ . '/partials/_reviewers.php';
-
-$message .= require __DIR__ . '/../../shared/partials/gitlab/_body.php';
-
-echo $message;
+š³ {{ $payload->object_attributes->source_branch }} -> {{ $payload->object_attributes->target_branch }} šÆ
+@include('tg-notifier::events.shared.partials.gitlab._assignees', compact('payload', 'event'))
+@include('tg-notifier::events.gitlab.merge_request.partials._reviewers', compact('payload'))
+@include('tg-notifier::events.shared.partials.gitlab._body', compact('payload', 'event'))
diff --git a/resources/views/events/gitlab/merge_request/unapproval.blade.php b/resources/views/events/gitlab/merge_request/unapproval.blade.php
index e7e3554..8b2bea6 100644
--- a/resources/views/events/gitlab/merge_request/unapproval.blade.php
+++ b/resources/views/events/gitlab/merge_request/unapproval.blade.php
@@ -1,18 +1,18 @@
Merge Request Unapproved to š¦object_attributes->url}\">{$payload->project->path_with_namespace}#{$payload->object_attributes->iid} by {$payload->user->name}\n\n";
+?>
+{!! __('tg-notifier::events/gitlab/merge_request.unapproval.title', [
+ 'repo' => "{$payload->project->path_with_namespace}#{$payload->object_attributes->iid}",
+ 'user' => "{$payload->user->name}"
+ ]) !!}
-$message .= "š {$payload->object_attributes->title} \n\n";
+š {{ $payload->object_attributes->title }}
-$message .= "š³ {$payload->object_attributes->source_branch} -> {$payload->object_attributes->target_branch} šÆ \n";
-
-$message .= require __DIR__ . '/../../shared/partials/gitlab/_assignees.php';
-
-$message .= require __DIR__ . '/partials/_reviewers.php';
-
-$message .= require __DIR__ . '/../../shared/partials/gitlab/_body.php';
-
-echo $message;
+š³ {{ $payload->object_attributes->source_branch }} -> {{ $payload->object_attributes->target_branch }} šÆ
+@include('tg-notifier::events.shared.partials.gitlab._assignees', compact('payload', 'event'))
+@include('tg-notifier::events.gitlab.merge_request.partials._reviewers', compact('payload'))
+@include('tg-notifier::events.shared.partials.gitlab._body', compact('payload', 'event'))
diff --git a/resources/views/events/gitlab/merge_request/unapproved.blade.php b/resources/views/events/gitlab/merge_request/unapproved.blade.php
index 612677f..f3af320 100644
--- a/resources/views/events/gitlab/merge_request/unapproved.blade.php
+++ b/resources/views/events/gitlab/merge_request/unapproved.blade.php
@@ -1,18 +1,18 @@
Close Merge Request - š¦object_attributes->url}\">{$payload->project->path_with_namespace}#{$payload->object_attributes->iid} by {$payload->user->name}\n\n";
+?>
+{!! __('tg-notifier::events/gitlab/merge_request.unapproved.title', [
+ 'repo' => "{$payload->project->path_with_namespace}#{$payload->object_attributes->iid}",
+ 'user' => "{$payload->user->name}"
+ ]) !!}
-$message .= "š {$payload->object_attributes->title} \n\n";
+š {{ $payload->object_attributes->title }}
-$message .= "š³ {$payload->object_attributes->source_branch} -> {$payload->object_attributes->target_branch} šÆ \n";
-
-$message .= require __DIR__ . '/../../shared/partials/gitlab/_assignees.php';
-
-$message .= require __DIR__ . '/partials/_reviewers.php';
-
-$message .= require __DIR__ . '/../../shared/partials/gitlab/_body.php';
-
-echo $message;
+š³ {{ $payload->object_attributes->source_branch }} -> {{ $payload->object_attributes->target_branch }} šÆ
+@include('tg-notifier::events.shared.partials.gitlab._assignees', compact('payload', 'event'))
+@include('tg-notifier::events.gitlab.merge_request.partials._reviewers', compact('payload'))
+@include('tg-notifier::events.shared.partials.gitlab._body', compact('payload', 'event'))
diff --git a/resources/views/events/gitlab/merge_request/update.blade.php b/resources/views/events/gitlab/merge_request/update.blade.php
index 8a8dac3..b874365 100644
--- a/resources/views/events/gitlab/merge_request/update.blade.php
+++ b/resources/views/events/gitlab/merge_request/update.blade.php
@@ -1,18 +1,18 @@
Merge Request Updated to š¦object_attributes->url}\">{$payload->project->path_with_namespace}#{$payload->object_attributes->iid} by {$payload->user->name}\n\n";
+?>
+{!! __('tg-notifier::events/gitlab/merge_request.update.title', [
+ 'repo' => "{$payload->project->path_with_namespace}#{$payload->object_attributes->iid}",
+ 'user' => "{$payload->user->name}"
+ ]) !!}
-$message .= "š {$payload->object_attributes->title} \n\n";
+š {{ $payload->object_attributes->title }}
-$message .= "š³ {$payload->object_attributes->source_branch} -> {$payload->object_attributes->target_branch} šÆ \n";
-
-$message .= require __DIR__ . '/../../shared/partials/gitlab/_assignees.php';
-
-$message .= require __DIR__ . '/partials/_reviewers.php';
-
-$message .= require __DIR__ . '/../../shared/partials/gitlab/_body.php';
-
-echo $message;
+š³ {{ $payload->object_attributes->source_branch }} -> {{ $payload->object_attributes->target_branch }} šÆ
+@include('tg-notifier::events.shared.partials.gitlab._assignees', compact('payload', 'event'))
+@include('tg-notifier::events.gitlab.merge_request.partials._reviewers', compact('payload'))
+@include('tg-notifier::events.shared.partials.gitlab._body', compact('payload', 'event'))
diff --git a/resources/views/events/gitlab/note/commit.blade.php b/resources/views/events/gitlab/note/commit.blade.php
index bb24184..501bd5f 100644
--- a/resources/views/events/gitlab/note/commit.blade.php
+++ b/resources/views/events/gitlab/note/commit.blade.php
@@ -1,14 +1,21 @@
New Comment on Commit - š¦object_attributes->url}\">{$payload->project->path_with_namespace} by {$payload->user->name}\n\n";
+?>
+{!! __('tg-notifier::events/gitlab/note.title.commit', [
+ 'repo' => "{$payload->project->path_with_namespace}",
+ 'user' => "{$payload->user->name}"
+ ]
+) !!}
-$message .= "āļø {$payload->commit->message} \n\n";
+āļø {{ $payload->commit->message }}
-$message .= "š View Comment: object_attributes->url}\">{$payload->commit->id} \n\n";
+{!! __('tg-notifier::events/gitlab/note.view_comment', [
+ 'link' => "{$payload->commit->id}"
+ ]
+) !!}
-$message .= require __DIR__ . '/../../shared/partials/gitlab/_body.php';
-
-echo $message;
+@include('tg-notifier::events.shared.partials.gitlab._body', compact('payload', 'event'))
diff --git a/resources/views/events/gitlab/note/issue.blade.php b/resources/views/events/gitlab/note/issue.blade.php
index 8009523..8176539 100644
--- a/resources/views/events/gitlab/note/issue.blade.php
+++ b/resources/views/events/gitlab/note/issue.blade.php
@@ -1,12 +1,16 @@
New Comment on Issue - š¦object_attributes->url}\">{$payload->project->path_with_namespace}#{$payload->issue->iid} by {$payload->user->name}\n\n";
+?>
-$message .= "š¢ {$payload->issue->title} \n\n";
+{!! __('tg-notifier::events/gitlab/note.title.issue', [
+ 'repo' => "{$payload->project->path_with_namespace}#{$payload->issue->iid}",
+ 'user' => "{$payload->user->name}"
+ ]
+) !!}
-$message .= require __DIR__ . '/../../shared/partials/gitlab/_body.php';
+š¢ {{ $payload->issue->title }}
-echo $message;
+@include('tg-notifier::events.shared.partials.gitlab._body', compact('payload', 'event'))
diff --git a/resources/views/events/gitlab/note/merge_request.blade.php b/resources/views/events/gitlab/note/merge_request.blade.php
index 149e932..b7398d1 100644
--- a/resources/views/events/gitlab/note/merge_request.blade.php
+++ b/resources/views/events/gitlab/note/merge_request.blade.php
@@ -1,14 +1,17 @@
New Comment on Merge Request - š¦object_attributes->url}\">{$payload->project->path_with_namespace}#{$payload->merge_request->iid} by {$payload->user->name}\n\n";
+?>
+{!! __('tg-notifier::events/gitlab/note.title.merge_request', [
+ 'repo' => "{$payload->project->path_with_namespace}#{$payload->merge_request->iid}",
+ 'user' => "{$payload->user->name}"
+ ]
+) !!}
-$message .= "š {$payload->merge_request->title} \n";
+š {{ $payload->merge_request->title }}
+š³ {{ $payload->merge_request->source_branch }} -> {{ $payload->merge_request->target_branch }} šÆ
-$message .= "š³ {$payload->merge_request->source_branch} -> {$payload->merge_request->target_branch} šÆ \n";
-
-$message .= require __DIR__ . '/../../shared/partials/gitlab/_body.php';
-
-echo $message;
+@include('tg-notifier::events.shared.partials.gitlab._body', compact('payload', 'event'))
diff --git a/resources/views/events/gitlab/note/snippet.blade.php b/resources/views/events/gitlab/note/snippet.blade.php
index 783c37e..cc4e271 100644
--- a/resources/views/events/gitlab/note/snippet.blade.php
+++ b/resources/views/events/gitlab/note/snippet.blade.php
@@ -1,14 +1,18 @@
New Comment on Snippet - š¦object_attributes->url}\">{$payload->project->path_with_namespace} by {$payload->user->name}\n\n";
+?>
+{!! __('tg-notifier::events/gitlab/note.title.snippet', [
+ 'repo' => "{$payload->project->path_with_namespace}",
+ 'user' => "{$payload->user->name}"
+ ]
+) !!}
-$message .= "š {$payload->snippet->title} \n\n";
+š {{ $payload->snippet->title }}
-$message .= "š object_attributes->url}\">View Comment \n\n";
+š {{ __('tg-notifier::events/gitlab/note.snippet_comment') }}
-$message .= require __DIR__ . '/../../shared/partials/gitlab/_body.php';
-
-echo $message;
+@include('tg-notifier::events.shared.partials.gitlab._body', compact('payload', 'event'))
diff --git a/resources/views/events/gitlab/push/default.blade.php b/resources/views/events/gitlab/push/default.blade.php
index 6bde206..6f7adaf 100644
--- a/resources/views/events/gitlab/push/default.blade.php
+++ b/resources/views/events/gitlab/push/default.blade.php
@@ -1,6 +1,6 @@
commits);
@@ -8,14 +8,24 @@
$ref = explode('/', $payload->ref);
$branch = implode('/', array_slice($ref, 2));
+?>
-$message = "āļø {$count} new {$noun} to š¦{$payload->project->path_with_namespace}:{$branch}
\n\n";
+{!! __('tg-notifier::events/gitlab/push.default.title', [
+ 'count' => $count,
+ 'noun' => $noun,
+ 'repo' => $payload->project->path_with_namespace,
+ 'branch' => $branch,
+ ]) !!}
-foreach ($payload->commits as $commit) {
+@foreach($payload->commits as $commit)
+@php
$commitId = substr($commit->id, -7);
- $message .= "url}\">{$commitId}: {$commit->message} - by {$commit->author->name}\n";
-}
+@endphp
+{!! __('tg-notifier::events/gitlab/push.default.commit', [
+ 'commit' => "$commitId",
+ 'commit_message' => $commit->message,
+ 'commit_by' => $commit->author->name,
+ ]) !!}
+@endforeach
-$message .= "\nš¤ Pushed by : {$payload->user_name}\n";
-
-echo $message;
+{!! __('tg-notifier::events/gitlab/push.default.pusher', ['name' => $payload->user_name]) !!}
diff --git a/resources/views/events/gitlab/release/create.blade.php b/resources/views/events/gitlab/release/create.blade.php
index f0fe6d7..2e78ba8 100644
--- a/resources/views/events/gitlab/release/create.blade.php
+++ b/resources/views/events/gitlab/release/create.blade.php
@@ -1,14 +1,17 @@
Release Created - š¦url}\">{$payload->project->path_with_namespace}#{$payload->tag} by {$payload->commit->author->name}\n\n";
+?>
-$message .= "š {$payload->tag} \n";
+{!! __('tg-notifier::events/gitlab/release.title.create', [
+ 'repo' => "{$payload->project->path_with_namespace}#{$payload->tag}",
+ 'user' => "{$payload->commit->author->name}"
+ ]) !!}
-$message .= "š {$payload->name} \n";
+š {{ $payload->tag }}
+š {{ $payload->name }}
-$message .= require __DIR__ . '/../../shared/partials/gitlab/_body.php';
-
-echo $message;
+@include('tg-notifier::events.shared.partials.gitlab._body', compact('payload', 'event'))
diff --git a/resources/views/events/gitlab/release/delete.blade.php b/resources/views/events/gitlab/release/delete.blade.php
new file mode 100644
index 0000000..6369f46
--- /dev/null
+++ b/resources/views/events/gitlab/release/delete.blade.php
@@ -0,0 +1,17 @@
+
+
+{!! __('tg-notifier::events/gitlab/release.title.delete', [
+ 'repo' => "{$payload->project->path_with_namespace}#{$payload->tag}",
+ 'user' => "{$payload->commit->author->name}"
+ ]) !!}
+
+š {{ $payload->tag }}
+š {{ $payload->name }}
+
+@include('tg-notifier::events.shared.partials.gitlab._body', compact('payload', 'event'))
diff --git a/resources/views/events/gitlab/release/update.blade.php b/resources/views/events/gitlab/release/update.blade.php
index 092ddbb..880314d 100644
--- a/resources/views/events/gitlab/release/update.blade.php
+++ b/resources/views/events/gitlab/release/update.blade.php
@@ -1,14 +1,17 @@
Release Updated - š¦url}\">{$payload->project->path_with_namespace}#{$payload->tag} by {$payload->commit->author->name}\n\n";
+?>
-$message .= "š {$payload->tag} \n";
+{!! __('tg-notifier::events/gitlab/release.title.update', [
+ 'repo' => "{$payload->project->path_with_namespace}#{$payload->tag}",
+ 'user' => "{$payload->commit->author->name}"
+ ]) !!}
-$message .= "š {$payload->name} \n";
+š {{ $payload->tag }}
+š {{ $payload->name }}
-$message .= require __DIR__ . '/../../shared/partials/gitlab/_body.php';
-
-echo $message;
+@include('tg-notifier::events.shared.partials.gitlab._body', compact('payload', 'event'))
diff --git a/resources/views/events/gitlab/tag_push/default.blade.php b/resources/views/events/gitlab/tag_push/default.blade.php
index 30a1b6e..25c1573 100644
--- a/resources/views/events/gitlab/tag_push/default.blade.php
+++ b/resources/views/events/gitlab/tag_push/default.blade.php
@@ -1,17 +1,21 @@
ref);
$tag = implode('/', array_slice($ref, 2));
+$tagUrl = $payload->project->web_url.'/tags/'.$tag;
+?>
-$tagUrl = $payload->project->web_url . '/tags/' . $tag;
+{!! __('tg-notifier::events/gitlab/tag_push.title', [
+ 'repo' => "{$payload->project->path_with_namespace}",
+ ]) !!}
-$message = "āļø A new tag has been pushed to the project š¦project->web_url}\">{$payload->project->path_with_namespace}\n\n";
+{!! __('tg-notifier::events/gitlab/tag_push.name', [
+ 'tag_name' => "{$tag}",
+ ]) !!}
-$message .= "š Tag: {$tag}\n\n";
-
-$message .= "š¤ Pushed by : {$payload->user_name}\n";
-
-echo $message;
+{!! __('tg-notifier::events/gitlab/tag_push.pusher', [
+ 'pusher' => "{$payload->user_name}",
+ ]) !!}
diff --git a/resources/views/events/gitlab/wiki_page/create.blade.php b/resources/views/events/gitlab/wiki_page/create.blade.php
index 761741a..df86002 100644
--- a/resources/views/events/gitlab/wiki_page/create.blade.php
+++ b/resources/views/events/gitlab/wiki_page/create.blade.php
@@ -1,12 +1,17 @@
Wiki Page Created - š¦object_attributes->url}\">{$payload->project->path_with_namespace}#{$payload->object_attributes->slug} by {$payload->user->name}\n\n";
+?>
+{!! __('tg-notifier::events/gitlab/wiki_page.title.create', [
+ 'repo' => "{$payload->project->path_with_namespace}#{$payload->object_attributes->slug}",
+ 'user' => "{$payload->user->name}"
+ ]) !!}
-$message .= "š· Title: {$payload->object_attributes->title} \n\n";
+{!! __('tg-notifier::events/gitlab/wiki_page.name', [
+ 'name' => "{$payload->object_attributes->title}"
+ ]) !!}
-$message .= require __DIR__ . '/../../shared/partials/gitlab/_body.php';
-
-echo $message;
+@include('tg-notifier::events.shared.partials.gitlab._body', compact('payload', 'event'))
diff --git a/resources/views/events/gitlab/wiki_page/delete.blade.php b/resources/views/events/gitlab/wiki_page/delete.blade.php
index 3943a12..2bffcfe 100644
--- a/resources/views/events/gitlab/wiki_page/delete.blade.php
+++ b/resources/views/events/gitlab/wiki_page/delete.blade.php
@@ -1,10 +1,17 @@
Wiki Page Deleted - š¦object_attributes->url}\">{$payload->project->path_with_namespace}#{$payload->object_attributes->slug} by {$payload->user->name}\n\n";
+?>
+{!! __('tg-notifier::events/gitlab/wiki_page.title.delete', [
+ 'repo' => "{$payload->project->path_with_namespace}#{$payload->object_attributes->slug}",
+ 'user' => "{$payload->user->name}"
+ ]) !!}
-$message .= "š· Title: {$payload->object_attributes->title} \n\n";
+{!! __('tg-notifier::events/gitlab/wiki_page.name', [
+ 'name' => "{$payload->object_attributes->title}"
+ ]) !!}
-echo $message;
+@include('tg-notifier::events.shared.partials.gitlab._body', compact('payload', 'event'))
diff --git a/resources/views/events/gitlab/wiki_page/update.blade.php b/resources/views/events/gitlab/wiki_page/update.blade.php
index a163760..6ba7779 100644
--- a/resources/views/events/gitlab/wiki_page/update.blade.php
+++ b/resources/views/events/gitlab/wiki_page/update.blade.php
@@ -1,12 +1,17 @@
Wiki Page Updated - š¦object_attributes->url}\">{$payload->project->path_with_namespace}#{$payload->object_attributes->slug} by {$payload->user->name}\n\n";
+?>
+{!! __('tg-notifier::events/gitlab/wiki_page.title.update', [
+ 'repo' => "{$payload->project->path_with_namespace}#{$payload->object_attributes->slug}",
+ 'user' => "{$payload->user->name}"
+ ]) !!}
-$message .= "š· Title: {$payload->object_attributes->title} \n\n";
+{!! __('tg-notifier::events/gitlab/wiki_page.name', [
+ 'name' => "{$payload->object_attributes->title}"
+ ]) !!}
-$message .= require __DIR__ . '/../../shared/partials/gitlab/_body.php';
-
-echo $message;
+@include('tg-notifier::events.shared.partials.gitlab._body', compact('payload', 'event'))
diff --git a/resources/views/events/shared/partials/github/_assignees.blade.php b/resources/views/events/shared/partials/github/_assignees.blade.php
index 36e428e..85fb070 100644
--- a/resources/views/events/shared/partials/github/_assignees.blade.php
+++ b/resources/views/events/shared/partials/github/_assignees.blade.php
@@ -1,6 +1,6 @@
assignees)) {
- $assigneeText = "š Assignee: ";
+ $assigneeText = __('tg-notifier::events/shared/gitlab._assignee.title');
$assigneeArray = [];
foreach ($payload->assignees as $assignee) {
$assigneeArray[] = "{$assignee->name}";
}
- $assigneeText .= implode(', ', $assigneeArray) . "\n";
+ $assigneeText .= implode(', ', $assigneeArray);
}
-
-return $assigneeText ?? '';
+?>
+{!! $assigneeText ?? '' !!}
diff --git a/resources/views/events/shared/partials/gitlab/_body.blade.php b/resources/views/events/shared/partials/gitlab/_body.blade.php
index fb505db..fc029b3 100644
--- a/resources/views/events/shared/partials/gitlab/_body.blade.php
+++ b/resources/views/events/shared/partials/gitlab/_body.blade.php
@@ -1,8 +1,10 @@
object_attributes->description)) {
$body = $payload->object_attributes->description;
@@ -21,7 +23,9 @@
$body = substr($body, 0, 50) . '...';
}
- return "š Content:\n{$body}";
+ $html = __('tg-notifier::events/shared/gitlab._body.title', ['body' => $body])
+ ."\n"
+ .htmlentities($body);
}
-
-return '';
+?>
+{!! $html !!}
diff --git a/routes/bot.php b/routes/bot.php
index 37c177d..81cf4a9 100644
--- a/routes/bot.php
+++ b/routes/bot.php
@@ -21,5 +21,7 @@
Route::prefix('webhook')->group(function () {
Route::get('/set', [WebhookAction::class, 'set'])->name('telegram-git-notifier.webhook.set');
Route::get('/delete', [WebhookAction::class, 'delete'])->name('telegram-git-notifier.webhook.delete');
+ Route::get('/info', [WebhookAction::class, 'getWebHookInfo'])->name('telegram-git-notifier.webhook.info');
+ Route::get('/updates', [WebhookAction::class, 'getUpdates'])->name('telegram-git-notifier.webhook.updates');
});
});