mirror of
https://github.com/kepler155c/opus
synced 2025-01-01 03:10:28 +00:00
add git api key support
This commit is contained in:
parent
25031bfdc2
commit
cb5f690cf4
@ -5,6 +5,10 @@ local TREE_URL = 'https://api.github.com/repos/%s/%s/git/trees/%s?recursive=1'
|
||||
local FILE_URL = 'https://raw.githubusercontent.com/%s/%s/%s/%s'
|
||||
local git = { }
|
||||
|
||||
if _G._GIT_API_KEY then
|
||||
TREE_URL = TREE_URL .. '&access_token=' .. _G._GIT_API_KEY
|
||||
end
|
||||
|
||||
function git.list(repository)
|
||||
local t = Util.split(repository, '(.-)/')
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user