mirror of
https://github.com/status-im/open-bounty.git
synced 2025-02-18 12:26:41 +00:00
configurable GH app feature toggle
This commit is contained in:
parent
f0c978ec47
commit
7143ec286a
@ -39,10 +39,11 @@
|
|||||||
(authorize-url "user:email"))
|
(authorize-url "user:email"))
|
||||||
|
|
||||||
;; NOTE: Capabilities picked for Github apps if true, Oauth if false
|
;; NOTE: Capabilities picked for Github apps if true, Oauth if false
|
||||||
(def github-app-flag true)
|
(defn github-app-enabled? []
|
||||||
|
(env :github-app-enabled) true)
|
||||||
|
|
||||||
(defn admin-authorize-url []
|
(defn admin-authorize-url []
|
||||||
(if github-app-flag
|
(if (github-app-enabled?)
|
||||||
(authorize-url "public_repo user:email")
|
(authorize-url "public_repo user:email")
|
||||||
(authorize-url "admin:repo_hook repo user:email admin:org_hook")))
|
(authorize-url "admin:repo_hook repo user:email admin:org_hook")))
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user