Skip to content

Commit

Permalink
attempt-backport: disable label removal for now
Browse files Browse the repository at this point in the history
Refs: #77
PR-URL: #90
  • Loading branch information
Fishrock123 committed Nov 16, 2016
1 parent 39cf0d7 commit a89e8fa
Showing 1 changed file with 6 additions and 4 deletions.
10 changes: 6 additions & 4 deletions scripts/attempt-backport.js
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ const debug = require('debug')('attempt-backport')
const request = require('request')
const node_repo = require('../lib/node-repo')
const updatePrWithLabels = node_repo.updatePrWithLabels
const removeLabelFromPR = node_repo.removeLabelFromPR
// const removeLabelFromPR = node_repo.removeLabelFromPR

const enabledRepos = ['node']
const queue = []
Expand Down Expand Up @@ -197,9 +197,11 @@ function attemptBackport(options, version, isLTS, cb) {
// Success!
if (isLTS) {
updatePrWithLabels(options, [`lts-watch-v${version}.x`])
} else {
removeLabelFromPR(options, `dont-land-on-v${version}.x`)
}
}// else {
// TODO(Fishrock123): Re-enable this, but do a check first
// to make sure the label was set by the bot only.
// removeLabelFromPR(options, `dont-land-on-v${version}.x`)
//}

setImmediate(() => {
options.logger.debug(`backport to v${version} successful`)
Expand Down

0 comments on commit a89e8fa

Please sign in to comment.