mirror of
https://github.com/status-im/open-bounty.git
synced 2025-01-26 09:19:03 +00:00
Handle issue re-open case
* update issue open status on "reopened" action in IssuesEvent webhook handler Fixes: #131
This commit is contained in:
parent
6cf7485138
commit
27004d1726
@ -71,6 +71,11 @@
|
||||
;; not to support it)
|
||||
#_(issues/close commit-sha issue-id)))
|
||||
|
||||
(defn handle-issue-reopened
|
||||
[{{issue-id :id} :issue}]
|
||||
(when (issues/is-bounty-issue? issue-id)
|
||||
(issues/update-open-status issue-id true)))
|
||||
|
||||
(def ^:const keywords
|
||||
[#"(?i)close:?\s+#(\d+)"
|
||||
#"(?i)closes:?\s+#(\d+)"
|
||||
@ -187,7 +192,9 @@
|
||||
(bounties/has-bounty-label? (:issue webhook-payload)))
|
||||
(handle-issue-closed webhook-payload))
|
||||
(when (= "edited" action)
|
||||
(handle-issue-edited webhook-payload)))
|
||||
(handle-issue-edited webhook-payload))
|
||||
(when (= "reopened" action)
|
||||
(handle-issue-reopened webhook-payload)))
|
||||
(ok))
|
||||
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user