UNPKG

renovate

Version:

Automated dependency updates. Flexible so you don't need to be.

19 lines (18 loc) 689 B
import { isNonEmptyArray } from "@sindresorhus/is"; //#region lib/config/validation-helpers/match-base-branches.ts /** * Only if type condition or context condition violated then errors array will be mutated to store metadata */ function check({ resolvedRule, currentPath, baseBranchPatterns }) { const warnings = []; if (Array.isArray(resolvedRule.matchBaseBranches)) { if (!isNonEmptyArray(baseBranchPatterns)) warnings.push({ topic: "Configuration Error", message: `${currentPath}: You must configure baseBranchPatterns in order to use them inside matchBaseBranches.` }); } return warnings; } //#endregion export { check }; //# sourceMappingURL=match-base-branches.js.map