File tree Expand file tree Collapse file tree 2 files changed +4
-4
lines changed Expand file tree Collapse file tree 2 files changed +4
-4
lines changed Original file line number Diff line number Diff line change @@ -36,11 +36,11 @@ let pluralize name num suffix = if num = 1 then sprintf "%s" name else String.co
36
36
37
37
let generate_pull_request_notification notification channel =
38
38
let { action; number; sender; pull_request; repository } = notification in
39
- let ({ body; title; html_url; labels; _ } : pull_request ) = pull_request in
39
+ let ({ body; title; html_url; labels; merged; _ } : pull_request ) = pull_request in
40
40
let action, body =
41
41
match action with
42
42
| Opened -> " opened" , Some body
43
- | Closed -> " closed" , None
43
+ | Closed -> ( if merged then " merged " else " closed" ) , None
44
44
| Reopened -> " reopened" , None
45
45
| Labeled -> " labeled" , show_labels labels
46
46
| _ ->
Original file line number Diff line number Diff line change @@ -286,11 +286,11 @@ will notify #default
286
286
"attachments": [
287
287
{
288
288
"fallback":
289
- "<https://github.com/xinyuluo/monorepo|[xinyuluo/monorepo]> Pull request #2 <https://github.com/xinyuluo/monorepo/pull/2|Update README.md> closed by *xinyuluo*",
289
+ "<https://github.com/xinyuluo/monorepo|[xinyuluo/monorepo]> Pull request #2 <https://github.com/xinyuluo/monorepo/pull/2|Update README.md> merged by *xinyuluo*",
290
290
"mrkdwn_in": [ "text" ],
291
291
"color": "#ccc",
292
292
"pretext":
293
- "<https://github.com/xinyuluo/monorepo|[xinyuluo/monorepo]> Pull request #2 <https://github.com/xinyuluo/monorepo/pull/2|Update README.md> closed by *xinyuluo*"
293
+ "<https://github.com/xinyuluo/monorepo|[xinyuluo/monorepo]> Pull request #2 <https://github.com/xinyuluo/monorepo/pull/2|Update README.md> merged by *xinyuluo*"
294
294
}
295
295
]
296
296
}
You can’t perform that action at this time.
0 commit comments