mirror of
https://github.com/status-im/open-bounty.git
synced 2025-01-28 02:05:27 +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)
|
;; not to support it)
|
||||||
#_(issues/close commit-sha issue-id)))
|
#_(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
|
(def ^:const keywords
|
||||||
[#"(?i)close:?\s+#(\d+)"
|
[#"(?i)close:?\s+#(\d+)"
|
||||||
#"(?i)closes:?\s+#(\d+)"
|
#"(?i)closes:?\s+#(\d+)"
|
||||||
@ -187,7 +192,9 @@
|
|||||||
(bounties/has-bounty-label? (:issue webhook-payload)))
|
(bounties/has-bounty-label? (:issue webhook-payload)))
|
||||||
(handle-issue-closed webhook-payload))
|
(handle-issue-closed webhook-payload))
|
||||||
(when (= "edited" action)
|
(when (= "edited" action)
|
||||||
(handle-issue-edited webhook-payload)))
|
(handle-issue-edited webhook-payload))
|
||||||
|
(when (= "reopened" action)
|
||||||
|
(handle-issue-reopened webhook-payload)))
|
||||||
(ok))
|
(ok))
|
||||||
|
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user