Better handling of user fork
This commit is contained in:
1 parent
480d4121da
commit
f318bcdf15
3 files changed
+14
-63
No files matched your search
@@ -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,
|
||||
|
||||
Reference in new issue
Block a user