Better handling of user fork

This commit is contained in:
NAmorim committed 2021-11-26 01:09:32 +00:00
1 parent 480d4121da
commit f318bcdf15
3 files changed
+14 -63

No files matched your search

+1 -4
View File
@@ -163,17 +163,14 @@ exports.newGithubServer = function newGithubServer() {
}
}
async function createGithubFork(repository, username, token) {
async function createGithubFork(token) {
try {
username = unescape(username)
token = unescape(token)
await doGithub()
async function doGithub() {
try {
//const repo = 'Superalgos'
//const owner = username
const { Octokit } = SA.nodeModules.octokit
const octokit = new Octokit({
auth: token,