Skip to content

Commit

Permalink
action: also clean issue closed
Browse files Browse the repository at this point in the history
  • Loading branch information
sewenthy committed Apr 22, 2023
1 parent 9d2d6bc commit 0bfc75d
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion lib/action.ml
Original file line number Diff line number Diff line change
Expand Up @@ -273,7 +273,8 @@ module Action (Github_api : Api.Github) (Slack_api : Api.Slack) = struct

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

Expand Down

0 comments on commit 0bfc75d

Please sign in to comment.