Put adding bounties for existing issues behind a feature toggle (default: false)
This commit is contained in:
parent
d1c375493f
commit
ed1a64bca4
|
@ -45,8 +45,7 @@
|
|||
issue-number
|
||||
transaction-hash)
|
||||
:id
|
||||
(issues/update-comment-id issue-id)))
|
||||
)
|
||||
(issues/update-comment-id issue-id))))
|
||||
(issues/update-transaction-hash issue-id transaction-hash))))
|
||||
(log/debug "Issue already exists in DB, ignoring"))))
|
||||
|
||||
|
|
|
@ -21,6 +21,9 @@
|
|||
[clojure.set :refer [rename-keys]]
|
||||
[clojure.string :as str]))
|
||||
|
||||
(defn add-bounties-for-existing-issues? []
|
||||
(env :add-bounties-for-existing-issues false))
|
||||
|
||||
(defn access-error [_ _]
|
||||
(unauthorized {:error "unauthorized"}))
|
||||
|
||||
|
@ -56,8 +59,8 @@
|
|||
(repositories/update-repo repo-id {:hook_id (:id created-hook)})))
|
||||
(github/create-label full-repo token)
|
||||
(repositories/update-repo repo-id {:state 2})
|
||||
(bounties/add-bounties-for-existing-issues full-repo))
|
||||
|
||||
(when (add-bounties-for-existing-issues?)
|
||||
(bounties/add-bounties-for-existing-issues full-repo)))
|
||||
|
||||
(defn disable-repo [repo-id full-repo hook-id token]
|
||||
(log/debug "disable-repo" repo-id full-repo)
|
||||
|
|
Loading…
Reference in New Issue