Skip to content

Commit e977be5

Browse files
committed
action: account for ready_for_review event
1 parent b9c1bc2 commit e977be5

File tree

2 files changed

+3
-2
lines changed

2 files changed

+3
-2
lines changed

lib/action.ml

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -48,7 +48,8 @@ module Action (Github_api : Api.Github) (Slack_api : Api.Slack) = struct
4848

4949
let partition_pr cfg (n : pr_notification) =
5050
match n.action with
51-
| (Opened | Closed | Reopened | Labeled) when not n.pull_request.draft -> partition_label cfg n.pull_request.labels
51+
| (Opened | Closed | Reopened | Labeled | Ready_for_review) when not n.pull_request.draft ->
52+
partition_label cfg n.pull_request.labels
5253
| _ -> []
5354

5455
let partition_issue cfg (n : issue_notification) =

lib/slack.ml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -39,7 +39,7 @@ let generate_pull_request_notification notification channel =
3939
let ({ body; title; html_url; labels; merged; _ } : pull_request) = pull_request in
4040
let action, body =
4141
match action with
42-
| Opened -> "opened", Some body
42+
| Opened | Ready_for_review -> "opened", Some body
4343
| Closed -> (if merged then "merged" else "closed"), None
4444
| Reopened -> "reopened", None
4545
| Labeled -> "labeled", show_labels labels

0 commit comments

Comments
 (0)