This commit is contained in:
lowlighter
2021-05-26 19:59:53 +02:00
3 changed files with 73 additions and 65 deletions

View File

@@ -119,7 +119,7 @@ async function wait(seconds) {
const api = {}
api.graphql = octokit.graphql.defaults({headers:{authorization:`token ${token}`}})
info("Github GraphQL API", "ok")
api.rest = github.getOctokit(token)
api.rest = github.getOctokit(token).rest
info("Github REST API", "ok")
//Apply mocking if needed
if (mocked) {