Skip to content

Commit 04ec06a

Browse files
committed
🐛 Return rest api from octokit
1 parent cee8520 commit 04ec06a

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

src/git.js

+2-1
Original file line numberDiff line numberDiff line change
@@ -39,7 +39,8 @@ const getOctokit = (token) => {
3939
}
4040
})
4141

42-
return new Octokit(options)
42+
const client = new Octokit(options)
43+
return client.rest
4344
}
4445

4546
const init = (repo) => {

src/index.js

-1
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,6 @@ const {
2020

2121
const run = async () => {
2222
const client = Git.getOctokit(GITHUB_TOKEN)
23-
// const client = github.getOctokit(GITHUB_TOKEN)
2423

2524
const repos = await parseConfig()
2625

0 commit comments

Comments
 (0)