Fix bug in pull request webhook handler

This commit is contained in:
Teemu Patja 2017-03-03 21:37:12 +02:00
parent 366b0f6a7a
commit 5cdc524c1b
No known key found for this signature in database
GPG Key ID: F5B7035E6580FD4C
1 changed files with 3 additions and 3 deletions

View File

@ -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