Fix bug in pull request webhook handler
This commit is contained in:
parent
366b0f6a7a
commit
5cdc524c1b
|
@ -147,19 +147,19 @@
|
||||||
(log/info "PR with reference to bounty issue"
|
(log/info "PR with reference to bounty issue"
|
||||||
bounty-issue-number "opened")
|
bounty-issue-number "opened")
|
||||||
(pull-requests/save (merge pr-data {:state :opened
|
(pull-requests/save (merge pr-data {:state :opened
|
||||||
:commit-sha head-sha})))
|
:commit_sha head-sha})))
|
||||||
:closed (if merged?
|
:closed (if merged?
|
||||||
(do (log/info "PR with reference to bounty issue"
|
(do (log/info "PR with reference to bounty issue"
|
||||||
bounty-issue-number "merged")
|
bounty-issue-number "merged")
|
||||||
(pull-requests/save
|
(pull-requests/save
|
||||||
(merge pr-data {:state :merged
|
(merge pr-data {:state :merged
|
||||||
:commit-sha head-sha}))
|
:commit_sha head-sha}))
|
||||||
(issues/update-commit-sha (:id issue) head-sha))
|
(issues/update-commit-sha (:id issue) head-sha))
|
||||||
(do (log/info "PR with reference to bounty issue"
|
(do (log/info "PR with reference to bounty issue"
|
||||||
bounty-issue-number "closed with no merge")
|
bounty-issue-number "closed with no merge")
|
||||||
(pull-requests/save
|
(pull-requests/save
|
||||||
(merge pr-data {:state :closed
|
(merge pr-data {:state :closed
|
||||||
:commit-sha head-sha}))))))))
|
:commit_sha head-sha}))))))))
|
||||||
|
|
||||||
|
|
||||||
(defn handle-issue
|
(defn handle-issue
|
||||||
|
|
Loading…
Reference in New Issue