From 5cdc524c1b2b4baf818a775396d825b7f4b2aef4 Mon Sep 17 00:00:00 2001 From: Teemu Patja Date: Fri, 3 Mar 2017 21:37:12 +0200 Subject: [PATCH] Fix bug in pull request webhook handler --- src/clj/commiteth/routes/webhooks.clj | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/clj/commiteth/routes/webhooks.clj b/src/clj/commiteth/routes/webhooks.clj index 93ec5ce..123fba8 100644 --- a/src/clj/commiteth/routes/webhooks.clj +++ b/src/clj/commiteth/routes/webhooks.clj @@ -147,19 +147,19 @@ (log/info "PR with reference to bounty issue" bounty-issue-number "opened") (pull-requests/save (merge pr-data {:state :opened - :commit-sha head-sha}))) + :commit_sha head-sha}))) :closed (if merged? (do (log/info "PR with reference to bounty issue" bounty-issue-number "merged") (pull-requests/save (merge pr-data {:state :merged - :commit-sha head-sha})) + :commit_sha head-sha})) (issues/update-commit-sha (:id issue) head-sha)) (do (log/info "PR with reference to bounty issue" bounty-issue-number "closed with no merge") (pull-requests/save (merge pr-data {:state :closed - :commit-sha head-sha})))))))) + :commit_sha head-sha})))))))) (defn handle-issue