Skip to content

Commit ef5e936

Browse files
committed
action: also clean issue closed
1 parent 69c8411 commit ef5e936

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

lib/action.ml

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

274274
let cleanup_state (ctx : Context.t) (payload : Github.t) =
275275
match payload with
276-
| Github.Pull_request { action = Closed; pull_request = { number; _ }; repository = { url; _ }; _ } ->
276+
| Github.Pull_request { action = Closed; pull_request = { number; _ }; repository = { url; _ }; _ }
277+
| Issue { action = Closed; issue = { number; _ }; repository = { url; _ }; _ } ->
277278
State.close_issue ctx.state url number
278279
| _ -> Lwt.return_unit
279280

0 commit comments

Comments
 (0)