Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
renovate
Manage
Activity
Members
Code
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Deploy
Releases
Model registry
Analyze
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
GitHub Mirror
Renovate Bot
renovate
Commits
ac2bc0de
Commit
ac2bc0de
authored
7 years ago
by
Rhys Arkins
Browse files
Options
Downloads
Patches
Plain Diff
refactor: rename upgrades to updates in branchify
parent
abebabb9
Branches
Branches containing commit
Tags
12.19.11
Tags containing commit
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
lib/workers/repository/updates/branchify.js
+21
-21
21 additions, 21 deletions
lib/workers/repository/updates/branchify.js
with
21 additions
and
21 deletions
lib/workers/repository/updates/branchify.js
+
21
−
21
View file @
ac2bc0de
...
...
@@ -27,39 +27,39 @@ function branchifyUpgrades(config) {
const
branchUpgrades
=
{};
const
branches
=
[];
for
(
const
upg
of
config
.
upgrades
)
{
const
up
grad
e
=
{
...
upg
};
// Split out errors and wrnings first
if
(
up
grad
e
.
type
===
'
error
'
)
{
errors
.
push
(
up
grad
e
);
}
else
if
(
up
grad
e
.
type
===
'
warning
'
)
{
warnings
.
push
(
up
grad
e
);
const
up
dat
e
=
{
...
upg
};
// Split out errors and w
a
rnings first
if
(
up
dat
e
.
type
===
'
error
'
)
{
errors
.
push
(
up
dat
e
);
}
else
if
(
up
dat
e
.
type
===
'
warning
'
)
{
warnings
.
push
(
up
dat
e
);
}
else
{
// Check whether to use a group name
if
(
up
grad
e
.
groupName
)
{
if
(
up
dat
e
.
groupName
)
{
logger
.
debug
(
'
Using group branchName template
'
);
logger
.
debug
(
`Dependency
${
up
grad
e
.
depName
}
is part of group
${
up
grad
e
.
groupName
}
`
`Dependency
${
up
dat
e
.
depName
}
is part of group
${
up
dat
e
.
groupName
}
`
);
up
grad
e
.
groupSlug
=
slugify
(
up
grad
e
.
groupSlug
||
up
grad
e
.
groupName
,
{
up
dat
e
.
groupSlug
=
slugify
(
up
dat
e
.
groupSlug
||
up
dat
e
.
groupName
,
{
lower
:
true
,
});
up
grad
e
.
branchTopic
=
up
grad
e
.
group
.
branchTopic
||
up
grad
e
.
branchTopic
;
up
grad
e
.
branchName
=
handlebars
.
compile
(
up
grad
e
.
group
.
branchName
||
up
grad
e
.
branchName
)(
up
grad
e
);
up
dat
e
.
branchTopic
=
up
dat
e
.
group
.
branchTopic
||
up
dat
e
.
branchTopic
;
up
dat
e
.
branchName
=
handlebars
.
compile
(
up
dat
e
.
group
.
branchName
||
up
dat
e
.
branchName
)(
up
dat
e
);
}
else
{
up
grad
e
.
branchName
=
handlebars
.
compile
(
up
grad
e
.
branchName
)(
up
grad
e
);
up
dat
e
.
branchName
=
handlebars
.
compile
(
up
dat
e
.
branchName
)(
up
dat
e
);
}
// Compile extra times in case of nested handlebars templates
up
grad
e
.
branchName
=
handlebars
.
compile
(
up
grad
e
.
branchName
)(
up
grad
e
);
up
grad
e
.
branchName
=
cleanBranchName
(
handlebars
.
compile
(
up
grad
e
.
branchName
)(
up
grad
e
)
up
dat
e
.
branchName
=
handlebars
.
compile
(
up
dat
e
.
branchName
)(
up
dat
e
);
up
dat
e
.
branchName
=
cleanBranchName
(
handlebars
.
compile
(
up
dat
e
.
branchName
)(
up
dat
e
)
);
branchUpgrades
[
up
grad
e
.
branchName
]
=
branchUpgrades
[
up
grad
e
.
branchName
]
||
[];
branchUpgrades
[
up
grad
e
.
branchName
]
=
[
up
grad
e
].
concat
(
branchUpgrades
[
up
grad
e
.
branchName
]
branchUpgrades
[
up
dat
e
.
branchName
]
=
branchUpgrades
[
up
dat
e
.
branchName
]
||
[];
branchUpgrades
[
up
dat
e
.
branchName
]
=
[
up
dat
e
].
concat
(
branchUpgrades
[
up
dat
e
.
branchName
]
);
}
}
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment