Skip to content

Commit

Permalink
Merge pull request #154 from inaka/harenson.153.elvis-approves-the-ch…
Browse files Browse the repository at this point in the history
…anges-but-the-check-fails

[Fix #153] Make check pass when PR is approved
  • Loading branch information
Brujo Benavides authored Jul 17, 2017
2 parents ed9f471 + 4cb4c67 commit 8969dae
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions src/egithub_webhook.erl
Original file line number Diff line number Diff line change
Expand Up @@ -186,6 +186,9 @@ do_handle_pull_request(Module, Cred, #{<<"number">> := PR,
{ok, GithubFiles} = egithub:pull_req_files(Cred, Repo, PR),
case Module:handle_pull_request(Cred, Data, GithubFiles) of
{ok, []} -> clean;
{ok, #{event := <<"APPROVE">>, comments := []} = Messages} ->
ok = handle_messages_or_review(Cred, Repo, PR, Messages),
clean;
{ok, Messages} ->
ok = handle_messages_or_review(Cred, Repo, PR, Messages),
with_warnings;
Expand Down

0 comments on commit 8969dae

Please sign in to comment.