Skip to content

Commit ed45dd5

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 ee84837 commit ed45dd5

File tree

2 files changed

+0
-255
lines changed

2 files changed

+0
-255
lines changed

scripts/attempt-backport.js

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

server.js

Lines changed: 0 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -4,20 +4,6 @@ require('dotenv').load({ silent: true })
44

55
const glob = require('glob')
66
const logger = require('./lib/logger')
7-
const { spawnSync } = require('child_process')
8-
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-
}
217

228
const port = process.env.PORT || 3000
239
const scriptsToLoad = process.env.SCRIPTS || './scripts/**/*.js'

0 commit comments

Comments
 (0)