diff --git a/lib/modules/datasource/bitbucket-tags/index.ts b/lib/modules/datasource/bitbucket-tags/index.ts index 165336cce165b95be78a4d926eee6cdf2a8678a6..f8b59d23196bf3cddcfa7051af9319457b663568 100644 --- a/lib/modules/datasource/bitbucket-tags/index.ts +++ b/lib/modules/datasource/bitbucket-tags/index.ts @@ -108,7 +108,7 @@ export class BitbucketTagsDatasource extends Datasource { BitbucketTagsDatasource.getCacheKey(registryUrl, repo, 'mainbranch'), ttlMinutes: 60, }) - async getMainBranch(repo: string): Promise<string> { + async getMainBranch(_registryUrl: string, repo: string): Promise<string> { return ( await this.bitbucketHttp.getJson(`/2.0/repositories/${repo}`, RepoInfo) ).body.mainbranch; @@ -129,7 +129,10 @@ export class BitbucketTagsDatasource extends Datasource { return this.getTagCommit(registryUrl, repo, newValue); } - const mainBranch = await this.getMainBranch(repo); + const mainBranch = await this.getMainBranch( + BitbucketTagsDatasource.getRegistryURL(registryUrl), + repo, + ); const url = `/2.0/repositories/${repo}/commits/${mainBranch}`; const bitbucketCommits = ( diff --git a/lib/modules/datasource/galaxy-collection/index.ts b/lib/modules/datasource/galaxy-collection/index.ts index ec109bc450a7a57d19dc8236f3d3206f7212b9cf..351814b843880e5c663fe2ee7eb85d84a2cf828a 100644 --- a/lib/modules/datasource/galaxy-collection/index.ts +++ b/lib/modules/datasource/galaxy-collection/index.ts @@ -120,7 +120,8 @@ export class GalaxyCollectionDatasource extends Datasource { @cache({ namespace: `datasource-${GalaxyCollectionDatasource.id}-detailed-version`, - key: (versionsUrl, basicRelease: Release) => basicRelease.version, + key: (_packageName: string, _versionsUrl: string, basicRelease: Release) => + basicRelease.version, ttlMinutes: 10080, // 1 week }) async getVersionDetails(