0
0
mirror of https://github.com/renovatebot/renovate.git synced 2024-12-22 13:38:32 +00:00
renovatebot_renovate/lib/config/migrations/custom/recreate-closed-migration.ts
RahulGautamSingh 2c264af8d2
feat: migraterecreateClosed to recreateWhen (#21039)
Co-authored-by: Rhys Arkins <rhys@arkins.net>
Co-authored-by: HonkingGoose <34918129+HonkingGoose@users.noreply.github.com>
Co-authored-by: Michael Kriese <michael.kriese@visualon.de>
2023-06-12 15:48:40 +00:00

14 lines
403 B
TypeScript

import is from '@sindresorhus/is';
import { AbstractMigration } from '../base/abstract-migration';
export class RecreateClosedMigration extends AbstractMigration {
override readonly deprecated = true;
override readonly propertyName = 'recreateClosed';
override run(value: unknown): void {
if (is.boolean(value)) {
this.setSafely('recreateWhen', value ? 'always' : 'auto');
}
}
}