mirror of
https://github.com/renovatebot/renovate.git
synced 2025-01-12 23:16:26 +00:00
refactor: hashed branch compilation
This commit is contained in:
parent
f72fe9f724
commit
1e90a544fc
1 changed files with 8 additions and 6 deletions
|
@ -57,13 +57,15 @@ export function generateBranchName(update: RenovateConfig): void {
|
||||||
hashLength = MIN_HASH_LENGTH;
|
hashLength = MIN_HASH_LENGTH;
|
||||||
}
|
}
|
||||||
|
|
||||||
const additionalBranchPrefix = update.additionalBranchPrefix
|
const additionalBranchPrefix = template.compile(
|
||||||
? template.compile(String(update.additionalBranchPrefix), update)
|
String(update.additionalBranchPrefix || ''),
|
||||||
: '';
|
update
|
||||||
|
);
|
||||||
|
|
||||||
const branchTopic = update.branchTopic
|
const branchTopic = template.compile(
|
||||||
? template.compile(String(update.branchTopic), update)
|
String(update.branchTopic || ''),
|
||||||
: '';
|
update
|
||||||
|
);
|
||||||
|
|
||||||
let hashInput = additionalBranchPrefix + branchTopic;
|
let hashInput = additionalBranchPrefix + branchTopic;
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue