Skip to content

Commit

Permalink
Fix parentheses leading to running the mirror action before the git r…
Browse files Browse the repository at this point in the history
…epo is initialized.
  • Loading branch information
Zimmi48 committed Oct 6, 2023
1 parent 16cc99c commit e9760db
Showing 1 changed file with 3 additions and 4 deletions.
7 changes: 3 additions & 4 deletions src/bot.ml
Original file line number Diff line number Diff line change
Expand Up @@ -204,10 +204,9 @@ let callback _conn req body =
{owner= "coq"; repo= "coq"; base_ref; head_sha; commits_msg} ) ->
(fun () ->
init_git_bare_repository ~bot_info
>>= (fun () ->
action_as_github_app ~bot_info ~key ~app_id ~owner:"coq"
~repo:"coq"
(coq_push_action ~base_ref ~commits_msg) )
>>= fun () ->
action_as_github_app ~bot_info ~key ~app_id ~owner:"coq" ~repo:"coq"
(coq_push_action ~base_ref ~commits_msg)
<&> action_as_github_app ~bot_info ~key ~app_id ~owner:"coq"
~repo:"coq"
(mirror_action ~gitlab_domain:"gitlab.inria.fr" ~owner:"coq"
Expand Down

0 comments on commit e9760db

Please sign in to comment.