this github scope
This commit is contained in:
committed by
mrugesh mohapatra
parent
e5501000df
commit
13f7a5b399
@ -64,7 +64,7 @@ class Presolver {
|
|||||||
async _createLabel (labelObj) {
|
async _createLabel (labelObj) {
|
||||||
const { owner, repo } = this.config
|
const { owner, repo } = this.config
|
||||||
const github = this.github
|
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
|
return this.github.issues
|
||||||
.getLabel({ owner, repo, name: labelObj.name })
|
.getLabel({ owner, repo, name: labelObj.name })
|
||||||
.catch(() => {
|
.catch(() => {
|
||||||
@ -92,11 +92,11 @@ class Presolver {
|
|||||||
const { owner, repo } = this.config
|
const { owner, repo } = this.config
|
||||||
const number = this.pullRequest.number
|
const number = this.pullRequest.number
|
||||||
const label = this.config.labelPRConflict
|
const label = this.config.labelPRConflict
|
||||||
|
const github = this.github
|
||||||
// Check if a label does not exist. If it does, it addes the label.
|
// Check if a label does not exist. If it does, it addes the label.
|
||||||
return this._getLabel(label).catch(() => {
|
return this._getLabel(label).catch(() => {
|
||||||
// console.log(labelObj)
|
// console.log(labelObj)
|
||||||
return this.github.issues.addLabels({
|
return github.issues.addLabels({
|
||||||
owner,
|
owner,
|
||||||
repo,
|
repo,
|
||||||
number,
|
number,
|
||||||
|
Reference in New Issue
Block a user