Skip to content

Commit b5851fc

Browse files
committed
highlight author name
1 parent 9d2531f commit b5851fc

File tree

1 file changed

+6
-6
lines changed

1 file changed

+6
-6
lines changed

lib/slack.ml

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -50,7 +50,7 @@ let generate_pull_request_notification notification =
5050
in
5151
let summary =
5252
Some
53-
(sprintf "<%s|[%s]> Pull request #%d <%s|%s> %s by %s" repository.url repository.full_name number html_url title
53+
(sprintf "<%s|[%s]> Pull request #%d <%s|%s> %s by *%s*" repository.url repository.full_name number html_url title
5454
action sender.login)
5555
in
5656
{
@@ -89,7 +89,7 @@ let generate_pr_review_notification notification =
8989
in
9090
let summary =
9191
Some
92-
(sprintf "<%s|[%s]> %s <%s|%s> #%d <%s|%s>" repository.url repository.full_name sender.login review.html_url
92+
(sprintf "<%s|[%s]> *%s* <%s|%s> #%d <%s|%s>" repository.url repository.full_name sender.login review.html_url
9393
action_str number html_url title)
9494
in
9595
{
@@ -122,7 +122,7 @@ let generate_pr_review_comment_notification notification =
122122
in
123123
let summary =
124124
Some
125-
(sprintf "<%s|[%s]> %s %s on #%d <%s|%s>" repository.url repository.full_name sender.login action_str number
125+
(sprintf "<%s|[%s]> *%s* %s on #%d <%s|%s>" repository.url repository.full_name sender.login action_str number
126126
html_url title)
127127
in
128128
let file =
@@ -164,7 +164,7 @@ let generate_issue_notification notification =
164164
in
165165
let summary =
166166
Some
167-
(sprintf "<%s|[%s]> Issue #%d <%s|%s> %s by %s" repository.url repository.full_name number html_url title action
167+
(sprintf "<%s|[%s]> Issue #%d <%s|%s> %s by *%s*" repository.url repository.full_name number html_url title action
168168
sender.login)
169169
in
170170
{
@@ -198,7 +198,7 @@ let generate_issue_comment_notification notification =
198198
in
199199
let summary =
200200
Some
201-
(sprintf "<%s|[%s]> %s <%s|%s> on #%d <%s|%s>" repository.url repository.full_name sender.login comment.html_url
201+
(sprintf "<%s|[%s]> *%s* <%s|%s> on #%d <%s|%s>" repository.url repository.full_name sender.login comment.html_url
202202
action_str number issue.html_url title)
203203
in
204204
{
@@ -338,7 +338,7 @@ let generate_commit_comment_notification cfg notification =
338338
in
339339
let summary =
340340
Some
341-
(sprintf "<%s|[%s]> %s commented on `<%s|%s>` %s" repository.url repository.full_name sender.login
341+
(sprintf "<%s|[%s]> *%s* commented on `<%s|%s>` %s" repository.url repository.full_name sender.login
342342
comment.html_url (git_short_sha_hash commit_id) (first_line commit.message))
343343
in
344344
let path =

0 commit comments

Comments
 (0)