renovate
Version:
Automated dependency updates. Flexible so you don't need to be.
16 lines • 680 B
JavaScript
;
Object.defineProperty(exports, "__esModule", { value: true });
exports.getBaseBranchDesc = getBaseBranchDesc;
function getBaseBranchDesc(config) {
// Describe base branch only if it's configured
if (!config.baseBranchPatterns?.length) {
return '';
}
if (config.baseBranchPatterns.length > 1) {
return `You have configured Renovate to use the following baseBranchPatterns: ${config.baseBranchPatterns
.map((branch) => `\`${branch}\``)
.join(', ')}.`;
}
return `You have configured Renovate to use branch \`${config.baseBranchPatterns[0]}\` as base branch.\n\n`;
}
//# sourceMappingURL=base-branch.js.map