mirror of
https://github.com/valitydev/repo-file-sync-action.git
synced 2024-11-06 09:55:21 +00:00
🐛 Return rest api from octokit
This commit is contained in:
parent
cee8520048
commit
04ec06a743
@ -39,7 +39,8 @@ const getOctokit = (token) => {
|
|||||||
}
|
}
|
||||||
})
|
})
|
||||||
|
|
||||||
return new Octokit(options)
|
const client = new Octokit(options)
|
||||||
|
return client.rest
|
||||||
}
|
}
|
||||||
|
|
||||||
const init = (repo) => {
|
const init = (repo) => {
|
||||||
|
@ -20,7 +20,6 @@ const {
|
|||||||
|
|
||||||
const run = async () => {
|
const run = async () => {
|
||||||
const client = Git.getOctokit(GITHUB_TOKEN)
|
const client = Git.getOctokit(GITHUB_TOKEN)
|
||||||
// const client = github.getOctokit(GITHUB_TOKEN)
|
|
||||||
|
|
||||||
const repos = await parseConfig()
|
const repos = await parseConfig()
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user