diff --git a/lib/modules/platform/github/pr.ts b/lib/modules/platform/github/pr.ts index 8451749b3c889dfe601230b0bee53fcc496badb9..e7152a348882393f98c69b4ae06a4eed7ea04672 100644 --- a/lib/modules/platform/github/pr.ts +++ b/lib/modules/platform/github/pr.ts @@ -12,7 +12,6 @@ function getPrApiCache(): ApiCache<GhPr> { const repoCache = getCache(); repoCache.platform ??= {}; repoCache.platform.github ??= {}; - delete repoCache.platform.github.prCache; repoCache.platform.github.pullRequestsCache ??= { items: {} }; const prApiCache = new ApiCache<GhPr>( repoCache.platform.github.pullRequestsCache as ApiPageCache<GhPr>, diff --git a/lib/util/cache/repository/types.ts b/lib/util/cache/repository/types.ts index d34303176a2f218f3fb18a2710f2ee771aa84a0b..ac9a5ee175be4a4798107ccacd9708df0e541a1d 100644 --- a/lib/util/cache/repository/types.ts +++ b/lib/util/cache/repository/types.ts @@ -144,7 +144,13 @@ export interface RepoCacheData { gitea?: { pullRequestsCache?: GiteaPrCacheData; }; - github?: Record<string, unknown>; + github?: { + /** + * To avoid circular dependency problem, we use `unknown` type here. + */ + pullRequestsCache?: unknown; + graphqlPageCache?: unknown; + }; bitbucket?: { pullRequestsCache?: BitbucketPrCacheData; };