diff --git a/lib/modules/datasource/orb/index.ts b/lib/modules/datasource/orb/index.ts index 2f2a1c20a711cd9bc88614f5d8d312a5b3766397..12e3bc834d5eee5eec1c0f0d39c24a124f407169 100644 --- a/lib/modules/datasource/orb/index.ts +++ b/lib/modules/datasource/orb/index.ts @@ -4,13 +4,15 @@ import { Datasource } from '../datasource'; import type { GetReleasesConfig, ReleaseResult } from '../types'; import type { OrbResponse } from './types'; +const MAX_VERSIONS = 100; + const query = ` -query($packageName: String!) { +query($packageName: String!, $maxVersions: Int!) { orb(name: $packageName) { name, homeUrl, isPrivate, - versions { + versions(count: $maxVersions) { version, createdAt } @@ -48,7 +50,7 @@ export class OrbDatasource extends Datasource { const url = `${registryUrl}graphql-unstable`; const body = { query, - variables: { packageName }, + variables: { packageName, maxVersions: MAX_VERSIONS }, }; const res = ( await this.http.postJson<OrbResponse>(url, {