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
e516a226
Commit
e516a226
authored
7 years ago
by
Rhys Arkins
Browse files
Options
Downloads
Patches
Plain Diff
fix: check bazel versions for stable/unstable
parent
352ac766
No related branches found
No related tags found
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
lib/manager/bazel/package.js
+13
-2
13 additions, 2 deletions
lib/manager/bazel/package.js
with
13 additions
and
2 deletions
lib/manager/bazel/package.js
+
13
−
2
View file @
e516a226
const
semver
=
require
(
'
semver
'
);
const
stable
=
require
(
'
semver-stable
'
);
const
{
getRepoTags
,
getRepoReleases
}
=
require
(
'
../../datasource/github
'
);
module
.
exports
=
{
...
...
@@ -20,9 +21,19 @@ async function getPackageUpdates(config) {
return
[];
}
const
repo
=
remote
.
substring
(
githubHost
.
length
).
replace
(
/.git$/
,
''
);
const
tags
=
await
getRepoTags
(
repo
);
let
tags
=
await
getRepoTags
(
repo
);
logger
.
debug
({
tags
,
remote
});
// istanbul ignore if
if
(
!
tags
.
length
)
{
logger
.
warn
({
repo
},
'
No tags found
'
);
return
[];
}
if
(
stable
.
is
(
currentVersion
))
{
tags
=
tags
.
filter
(
tag
=>
stable
.
is
(
tag
));
}
const
[
newestTag
]
=
tags
.
slice
(
-
1
);
if
(
semver
.
gt
(
newestTag
,
currentVersion
))
{
if
(
newestTag
&&
semver
.
gt
(
newestTag
,
currentVersion
))
{
logger
.
debug
({
newestTag
},
'
Found newer tag
'
);
return
[
{
newVersion
:
newestTag
,
...
...
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