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
08a08ecf
Unverified
Commit
08a08ecf
authored
6 months ago
by
Mathieu Kniewallner
Committed by
GitHub
6 months ago
Browse files
Options
Downloads
Patches
Plain Diff
fix(datasource/orb): retrieve more releases (#31165)
parent
ce781fde
No related branches found
Branches containing commit
No related tags found
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
lib/modules/datasource/orb/index.ts
+5
-3
5 additions, 3 deletions
lib/modules/datasource/orb/index.ts
with
5 additions
and
3 deletions
lib/modules/datasource/orb/index.ts
+
5
−
3
View file @
08a08ecf
...
@@ -4,13 +4,15 @@ import { Datasource } from '../datasource';
...
@@ -4,13 +4,15 @@ import { Datasource } from '../datasource';
import
type
{
GetReleasesConfig
,
ReleaseResult
}
from
'
../types
'
;
import
type
{
GetReleasesConfig
,
ReleaseResult
}
from
'
../types
'
;
import
type
{
OrbResponse
}
from
'
./types
'
;
import
type
{
OrbResponse
}
from
'
./types
'
;
const
MAX_VERSIONS
=
100
;
const
query
=
`
const
query
=
`
query($packageName: String!) {
query($packageName: String!
, $maxVersions: Int!
) {
orb(name: $packageName) {
orb(name: $packageName) {
name,
name,
homeUrl,
homeUrl,
isPrivate,
isPrivate,
versions {
versions
(count: $maxVersions)
{
version,
version,
createdAt
createdAt
}
}
...
@@ -48,7 +50,7 @@ export class OrbDatasource extends Datasource {
...
@@ -48,7 +50,7 @@ export class OrbDatasource extends Datasource {
const
url
=
`
${
registryUrl
}
graphql-unstable`
;
const
url
=
`
${
registryUrl
}
graphql-unstable`
;
const
body
=
{
const
body
=
{
query
,
query
,
variables
:
{
packageName
},
variables
:
{
packageName
,
maxVersions
:
MAX_VERSIONS
},
};
};
const
res
=
(
const
res
=
(
await
this
.
http
.
postJson
<
OrbResponse
>
(
url
,
{
await
this
.
http
.
postJson
<
OrbResponse
>
(
url
,
{
...
...
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