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;
|
||||
}
|
||||
|
||||
const additionalBranchPrefix = update.additionalBranchPrefix
|
||||
? template.compile(String(update.additionalBranchPrefix), update)
|
||||
: '';
|
||||
const additionalBranchPrefix = template.compile(
|
||||
String(update.additionalBranchPrefix || ''),
|
||||
update
|
||||
);
|
||||
|
||||
const branchTopic = update.branchTopic
|
||||
? template.compile(String(update.branchTopic), update)
|
||||
: '';
|
||||
const branchTopic = template.compile(
|
||||
String(update.branchTopic || ''),
|
||||
update
|
||||
);
|
||||
|
||||
let hashInput = additionalBranchPrefix + branchTopic;
|
||||
|
||||
|
|
Loading…
Reference in a new issue