mirror of
https://github.com/status-im/open-bounty.git
synced 2025-02-20 13:18:22 +00:00
Remove "repo" oauth scope
* remove "repo" from required permissions (fixes: #29) * formatting
This commit is contained in:
parent
6e60802803
commit
8aa7c87835
@ -27,7 +27,7 @@
|
|||||||
(defn authorize-url []
|
(defn authorize-url []
|
||||||
(let [params (codec/form-encode {:client_id (client-id)
|
(let [params (codec/form-encode {:client_id (client-id)
|
||||||
:redirect_uri (redirect-uri)
|
:redirect_uri (redirect-uri)
|
||||||
:scope "admin:repo_hook user:email repo admin:org_hook"
|
:scope "admin:repo_hook user:email admin:org_hook"
|
||||||
:allow_signup true
|
:allow_signup true
|
||||||
:state (str (UUID/randomUUID))})]
|
:state (str (UUID/randomUUID))})]
|
||||||
(str "https://github.com/login/oauth/authorize" "?" params)))
|
(str "https://github.com/login/oauth/authorize" "?" params)))
|
||||||
|
@ -18,5 +18,4 @@
|
|||||||
fixes #123
|
fixes #123
|
||||||
[comment]: # (To auto-close issue on merge, please insert the related issue number after # i.e fixes #566)
|
[comment]: # (To auto-close issue on merge, please insert the related issue number after # i.e fixes #566)
|
||||||
"]
|
"]
|
||||||
(is (= '(123) (webhooks/extract-issue-number body title))))
|
(is (= '(123) (webhooks/extract-issue-number body title))))))
|
||||||
))
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user