Skip to content

Commit d1d8a30

Browse files
committed
chore: remove unused attempt backport script
This was a very neat part of the bot at one point, but ended up creating some noise and got disabled. It used to try backport of patches from created & updated PRs against the `${version}.x-staging`s and as a result, added `lts-watch-v${version}.x` or `dont-land-on-v${version}.x` when applicable. When it was operationale, it tried to apply patches against Node.js versions: 4, 6 and 7. Those version are all end-of-life now. For the bot to try backport of patches for newer versions of Node.js, those versions would have to be added explicitly in the bot' source code. That has obviously not happened, assuming the reason being it wasn't as helpful afterall.
1 parent d4969e0 commit d1d8a30

File tree

2 files changed

+0
-254
lines changed

2 files changed

+0
-254
lines changed

scripts/attempt-backport.js

Lines changed: 0 additions & 241 deletions
This file was deleted.

server.js

Lines changed: 0 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -6,19 +6,6 @@ const glob = require('glob')
66
const logger = require('./lib/logger')
77
const { spawnSync } = require('child_process')
88

9-
if (process.env.NODE_REPO_DIR) {
10-
const fs = require('fs')
11-
global._node_repo_dir = fs.realpathSync(process.env.NODE_REPO_DIR)
12-
const out = spawnSync('git', ['status'], { cwd: global._node_repo_dir })
13-
14-
if (out.status !== 0) {
15-
logger.info(out.stdout)
16-
logger.error(out.stderr)
17-
logger.error('Bad NODE_REPO_DIR. Backport patch testing disabled.')
18-
global._node_repo_dir = false
19-
}
20-
}
21-
229
const port = process.env.PORT || 3000
2310
const scriptsToLoad = process.env.SCRIPTS || './scripts/**/*.js'
2411
const { app, events } = require('./app')

0 commit comments

Comments
 (0)