refactor guthub api
[pharext/pharext.org] / config / app.ini
index 1cdc655a37f08abd42591a3e3a0e7d4963143602..ec01dbf4adcd3523da4dbaad03c48b6d6bc744bc 100644 (file)
@@ -1,12 +1,15 @@
 [production]
 
+github.api.url = https://api.github.com/
+github.api.accept = application/vnd.github.v3+json
+
+github.api.call.listrepos.args.per_page = 10
+github.api.call.listhooks.args.per_page = 100
+
 github.hook.url = https://pharext.org/github/hook
 github.hook.content_type = json
 github.hook.insecure_ssl = 0
 
-github.fetch.repos.per_page = 10
-github.fetch.hooks.per_page = 100
-
 github.storage.token.ttl = 3600
 github.storage.cache.repo.ttl = 3600
 github.storage.cache.repos.ttl = 3600