Skip to content

Commit b9c1bc2

Browse files
committed
action: don't notify if draft pr opened/closed/labeled
I suppose PR reviews and comments are still useful in draft status
1 parent 397b61e commit b9c1bc2

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

lib/action.ml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -48,7 +48,7 @@ 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 -> partition_label cfg n.pull_request.labels
51+
| (Opened | Closed | Reopened | Labeled) when not n.pull_request.draft -> partition_label cfg n.pull_request.labels
5252
| _ -> []
5353

5454
let partition_issue cfg (n : issue_notification) =

0 commit comments

Comments
 (0)