From 13f7a5b399e0bc03c65b6bf94e09efff2fe81e99 Mon Sep 17 00:00:00 2001 From: tbushman Date: Mon, 19 Nov 2018 20:52:48 -0700 Subject: [PATCH] this github scope --- probot/presolver/lib/presolver.js | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/probot/presolver/lib/presolver.js b/probot/presolver/lib/presolver.js index fcedc17e6b..9a8901d344 100644 --- a/probot/presolver/lib/presolver.js +++ b/probot/presolver/lib/presolver.js @@ -64,7 +64,7 @@ class Presolver { async _createLabel (labelObj) { const { owner, repo } = this.config const github = this.github - console.log(this.github.issues.getLabel({ owner, repo, name: labelObj.name })) + //console.log(this.github.issues.getLabel({ owner, repo, name: labelObj.name })) return this.github.issues .getLabel({ owner, repo, name: labelObj.name }) .catch(() => { @@ -92,11 +92,11 @@ class Presolver { const { owner, repo } = this.config const number = this.pullRequest.number const label = this.config.labelPRConflict - + const github = this.github // Check if a label does not exist. If it does, it addes the label. return this._getLabel(label).catch(() => { // console.log(labelObj) - return this.github.issues.addLabels({ + return github.issues.addLabels({ owner, repo, number,