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
GitLab community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
GitHub Mirror
Renovate Bot
renovate
Commits
74b34cda
Commit
74b34cda
authored
6 years ago
by
Rhys Arkins
Browse files
Options
Downloads
Patches
Plain Diff
chore: move updateTypes def
parent
6ed4b80b
Branches
Branches containing commit
Tags
Tags containing commit
No related merge requests found
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
lib/workers/repository/updates/flatten.js
+8
-8
8 additions, 8 deletions
lib/workers/repository/updates/flatten.js
with
8 additions
and
8 deletions
lib/workers/repository/updates/flatten.js
+
8
−
8
View file @
74b34cda
...
@@ -18,6 +18,14 @@ function getUpdateTypeRules(packageRules) {
...
@@ -18,6 +18,14 @@ function getUpdateTypeRules(packageRules) {
function
flattenUpdates
(
config
,
packageFiles
)
{
function
flattenUpdates
(
config
,
packageFiles
)
{
const
updates
=
[];
const
updates
=
[];
const
updateTypes
=
[
'
major
'
,
'
minor
'
,
'
patch
'
,
'
pin
'
,
'
digest
'
,
'
lockFileMaintenance
'
,
];
for
(
const
[
manager
,
files
]
of
Object
.
entries
(
packageFiles
))
{
for
(
const
[
manager
,
files
]
of
Object
.
entries
(
packageFiles
))
{
const
managerConfig
=
getManagerConfig
(
config
,
manager
);
const
managerConfig
=
getManagerConfig
(
config
,
manager
);
for
(
const
packageFile
of
files
)
{
for
(
const
packageFile
of
files
)
{
...
@@ -39,14 +47,6 @@ function flattenUpdates(config, packageFiles) {
...
@@ -39,14 +47,6 @@ function flattenUpdates(config, packageFiles) {
updateConfig
,
updateConfig
,
updateConfig
[
updateConfig
.
updateType
]
updateConfig
[
updateConfig
.
updateType
]
);
);
const
updateTypes
=
[
'
major
'
,
'
minor
'
,
'
patch
'
,
'
pin
'
,
'
digest
'
,
'
lockFileMaintenance
'
,
];
for
(
const
updateType
of
updateTypes
)
{
for
(
const
updateType
of
updateTypes
)
{
delete
updateConfig
[
updateType
];
delete
updateConfig
[
updateType
];
}
}
...
...
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