mirror of
https://github.com/renovatebot/renovate.git
synced 2024-12-22 13:38:32 +00:00
2c264af8d2
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>
14 lines
403 B
TypeScript
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');
|
|
}
|
|
}
|
|
}
|