mirror of
https://github.com/renovatebot/renovate.git
synced 2025-05-12 23:51:55 +00:00
16 lines
462 B
TypeScript
16 lines
462 B
TypeScript
import is from '@sindresorhus/is';
|
|
import { AbstractMigration } from '../base/abstract-migration';
|
|
|
|
export class BaseBranchMigration extends AbstractMigration {
|
|
override readonly deprecated = true;
|
|
override readonly propertyName = 'baseBranch';
|
|
|
|
override run(value: unknown): void {
|
|
if (is.array<string>(value)) {
|
|
this.setSafely('baseBranches', value);
|
|
}
|
|
if (is.string(value)) {
|
|
this.setSafely('baseBranches', [value]);
|
|
}
|
|
}
|
|
}
|