diff --git a/src/git.js b/src/git.js index 82d97701..46395774 100644 --- a/src/git.js +++ b/src/git.js @@ -39,7 +39,8 @@ const getOctokit = (token) => { } }) - return new Octokit(options) + const client = new Octokit(options) + return client.rest } const init = (repo) => { diff --git a/src/index.js b/src/index.js index 95623dd3..339fa6d3 100644 --- a/src/index.js +++ b/src/index.js @@ -20,7 +20,6 @@ const { const run = async () => { const client = Git.getOctokit(GITHUB_TOKEN) - // const client = github.getOctokit(GITHUB_TOKEN) const repos = await parseConfig()