-
-
Save billybonks/34144e6a2507b1110f9a46d6bfba5807 to your computer and use it in GitHub Desktop.
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
async install(repo){ | |
this.github = await User.githubClient(this.user.id); | |
repo = await this.saveRepo(repo); | |
await this.savePullRequests(repo); | |
await this.ensureInstallerIsMember(repo); | |
return this.saveLabels(repo); | |
} | |
install(repo){ | |
return User.getGithubTokens(this.user.id).then( (tokens) => { | |
this.github = new Github(tokens.access_token); | |
return this.saveRepo(repo) | |
.then(this.addMember.bind(this)) | |
.then(this.savePullRequests.bind(this)) | |
.then(this.saveLabels.bind(this)) | |
}); | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment