@@ -46,12 +46,14 @@ let generate_pull_request_notification notification channel =
46
46
| _ ->
47
47
invalid_arg
48
48
(sprintf " Monorobot doesn't know how to generate notification for the unexpected event %s"
49
- (string_of_pr_action action))
49
+ (string_of_pr_action action)
50
+ )
50
51
in
51
52
let summary =
52
53
Some
53
54
(sprintf " <%s|[%s]> Pull request #%d <%s|%s> %s by *%s*" repository.url repository.full_name number html_url title
54
- action sender.login)
55
+ action sender.login
56
+ )
55
57
in
56
58
{
57
59
channel;
@@ -86,12 +88,14 @@ let generate_pr_review_notification notification channel =
86
88
| _ ->
87
89
invalid_arg
88
90
(sprintf " Monorobot doesn't know how to generate notification for the unexpected event %s"
89
- (string_of_pr_review_action action))
91
+ (string_of_pr_review_action action)
92
+ )
90
93
in
91
94
let summary =
92
95
Some
93
96
(sprintf " <%s|[%s]> *%s* <%s|%s> #%d <%s|%s>" repository.url repository.full_name sender.login review.html_url
94
- action_str number html_url title)
97
+ action_str number html_url title
98
+ )
95
99
in
96
100
{
97
101
channel;
@@ -120,12 +124,14 @@ let generate_pr_review_comment_notification notification channel =
120
124
| _ ->
121
125
invalid_arg
122
126
(sprintf " Monorobot doesn't know how to generate notification for the unexpected event %s"
123
- (string_of_comment_action action))
127
+ (string_of_comment_action action)
128
+ )
124
129
in
125
130
let summary =
126
131
Some
127
132
(sprintf " <%s|[%s]> *%s* %s on #%d <%s|%s>" repository.url repository.full_name sender.login action_str number
128
- html_url title)
133
+ html_url title
134
+ )
129
135
in
130
136
let file =
131
137
match comment.path with
@@ -163,12 +169,14 @@ let generate_issue_notification notification channel =
163
169
| _ ->
164
170
invalid_arg
165
171
(sprintf " Monorobot doesn't know how to generate notification for the unexpected event %s"
166
- (string_of_issue_action action))
172
+ (string_of_issue_action action)
173
+ )
167
174
in
168
175
let summary =
169
176
Some
170
177
(sprintf " <%s|[%s]> Issue #%d <%s|%s> %s by *%s*" repository.url repository.full_name number html_url title action
171
- sender.login)
178
+ sender.login
179
+ )
172
180
in
173
181
{
174
182
channel;
@@ -198,12 +206,14 @@ let generate_issue_comment_notification notification channel =
198
206
invalid_arg
199
207
(sprintf
200
208
" Monorobot doesn't know how to generate pull request review comment notification for the unexpected event %s"
201
- (string_of_comment_action action))
209
+ (string_of_comment_action action)
210
+ )
202
211
in
203
212
let summary =
204
213
Some
205
214
(sprintf " <%s|[%s]> *%s* <%s|%s> on #%d <%s|%s>" repository.url repository.full_name sender.login comment.html_url
206
- action_str number issue.html_url title)
215
+ action_str number issue.html_url title
216
+ )
207
217
in
208
218
{
209
219
channel;
@@ -291,7 +301,8 @@ let generate_status_notification (cfg : Config_t.config) (notification : status_
291
301
| _ ->
292
302
invalid_arg
293
303
(sprintf " Monorobot doesn't know how to generate notification for the unexpected event %s of %s"
294
- (string_of_status_state state) sha)
304
+ (string_of_status_state state) sha
305
+ )
295
306
in
296
307
let color_info =
297
308
match state with
@@ -327,7 +338,8 @@ let generate_status_notification (cfg : Config_t.config) (notification : status_
327
338
| Some t ->
328
339
Some
329
340
(sprintf " <%s|[%s]> CI Build Status notification for <%s|%s>: %s" repository.url repository.full_name t context
330
- state_info)
341
+ state_info
342
+ )
331
343
in
332
344
let msg = String. concat ~sep: " \n " @@ List. concat [ commit_info; branches_info ] in
333
345
let attachment =
@@ -354,7 +366,8 @@ let generate_commit_comment_notification api_commit notification channel =
354
366
let summary =
355
367
Some
356
368
(sprintf " <%s|[%s]> *%s* commented on `<%s|%s>` %s" repository.url repository.full_name sender.login
357
- comment.html_url (git_short_sha_hash commit_id) (first_line commit.message))
369
+ comment.html_url (git_short_sha_hash commit_id) (first_line commit.message)
370
+ )
358
371
in
359
372
let path =
360
373
match comment.path with
0 commit comments