@@ -248,21 +248,22 @@ module Action (Github_api : Api.Github) (Slack_api : Api.Slack) = struct
248
248
match validate_signature secrets payload with
249
249
| Error e -> action_error e
250
250
| Ok () ->
251
- let repo = Github. repo_of_notification payload in
252
- match repo_is_supported secrets repo with
253
- | false -> action_error @@ Printf. sprintf " unsupported repository %s" repo.url
254
- | true ->
255
- ( match % lwt refresh_repo_config ctx payload with
256
- | Error e -> action_error e
257
- | Ok () ->
258
- let % lwt notifications = generate_notifications ctx payload in
259
- let % lwt () = Lwt. join [ send_notifications ctx notifications; do_github_tasks ctx repo payload ] in
260
- ( match ctx.state_filepath with
261
- | None -> Lwt. return_unit
262
- | Some path ->
263
- ( match % lwt State. save ctx.state path with
264
- | Ok () -> Lwt. return_unit
265
- | Error e -> action_error e
251
+ let repo = Github. repo_of_notification payload in
252
+ ( match repo_is_supported secrets repo with
253
+ | false -> action_error @@ Printf. sprintf " unsupported repository %s" repo.url
254
+ | true ->
255
+ ( match % lwt refresh_repo_config ctx payload with
256
+ | Error e -> action_error e
257
+ | Ok () ->
258
+ let % lwt notifications = generate_notifications ctx payload in
259
+ let % lwt () = Lwt. join [ send_notifications ctx notifications; do_github_tasks ctx repo payload ] in
260
+ ( match ctx.state_filepath with
261
+ | None -> Lwt. return_unit
262
+ | Some path ->
263
+ ( match % lwt State. save ctx.state path with
264
+ | Ok () -> Lwt. return_unit
265
+ | Error e -> action_error e
266
+ )
266
267
)
267
268
)
268
269
)
0 commit comments