Skip to content

Commit 4df276e

Browse files
committed
attempt-backport: disable label removal for now
Refs: nodejs#77 PR-URL: nodejs#90
1 parent 323215e commit 4df276e

File tree

1 file changed

+6
-4
lines changed

1 file changed

+6
-4
lines changed

scripts/attempt-backport.js

+6-4
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ const debug = require('debug')('attempt-backport')
55
const request = require('request')
66
const node_repo = require('../lib/node-repo')
77
const updatePrWithLabels = node_repo.updatePrWithLabels
8-
const removeLabelFromPR = node_repo.removeLabelFromPR
8+
// const removeLabelFromPR = node_repo.removeLabelFromPR
99

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

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

0 commit comments

Comments
 (0)