diff --git a/sys/apis/git.lua b/sys/apis/git.lua index c7a5ccc..058f202 100644 --- a/sys/apis/git.lua +++ b/sys/apis/git.lua @@ -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, '(.-)/')