diff --git a/lib/workers/branch/check-existing.js b/lib/workers/branch/check-existing.js index 41b15cee1afbf4050ff420930d08e1e614521c76..7d646f4d60a876601218a2a9aa330fdb6680e1e8 100644 --- a/lib/workers/branch/check-existing.js +++ b/lib/workers/branch/check-existing.js @@ -22,19 +22,6 @@ async function prAlreadyExisted(config) { ); if (pr) { logger.debug('Found closed PR with current title'); - // this code exists to ignore mistakenly closed PRs which occurred due to a bug - // TODO: Remove this by end of June 2018 - const closedAt = moment(pr.closed_at); - const problemStart = moment('2017-10-15T20:00:00Z'); - const problemStopped = moment('2017-10-16T06:00:00Z'); - if (problemStart.isBefore(closedAt) && closedAt.isBefore(problemStopped)) { - logger.info( - { closedAt, problemStart, problemStopped }, - 'Renaming mistakenly closed PR' - ); - await platform.updatePr(pr.number, `${pr.title} - autoclosed`); - return null; - } return pr; } // Check for legacy PR title format