This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
const repo = 'vital101/kernl-example-plugin-gitub'; | |
const token = 'my-token-from-oauth'; | |
const cloneURL = `https://${token}:[email protected]/${repository}`; | |
const cloneOptions = { | |
fetchOpts: { | |
callbacks: { | |
certificateCheck: () => { return 1; }, | |
credentials: () => { | |
return NodeGit.Cred.userpassPlaintextNew(token, 'x-oauth-basic'); | |
} |
OlderNewer