diff --git a/lib/modules/platform/bitbucket/index.ts b/lib/modules/platform/bitbucket/index.ts
index 9678aa2443b45ec317e5c5963e4b2513cd3fbdfb..35d125ffda89d702afc9e9b3c1e81a83331bc934 100644
--- a/lib/modules/platform/bitbucket/index.ts
+++ b/lib/modules/platform/bitbucket/index.ts
@@ -919,7 +919,7 @@ export async function createPr({
       )
     ).body;
     const pr = utils.prInfo(prRes);
-    await BitbucketPrCache.addPr(
+    await BitbucketPrCache.setPr(
       bitbucketHttp,
       config.repository,
       renovateUserUuid,
@@ -949,7 +949,7 @@ export async function createPr({
         )
       ).body;
       const pr = utils.prInfo(prRes);
-      await BitbucketPrCache.addPr(
+      await BitbucketPrCache.setPr(
         bitbucketHttp,
         config.repository,
         renovateUserUuid,
diff --git a/lib/modules/platform/bitbucket/pr-cache.ts b/lib/modules/platform/bitbucket/pr-cache.ts
index a270f45b6aa9ccb7dd98216d876c9afeffd9cd1a..45ac62b30f091c0cf5160a2473fe466def5b8076 100644
--- a/lib/modules/platform/bitbucket/pr-cache.ts
+++ b/lib/modules/platform/bitbucket/pr-cache.ts
@@ -74,19 +74,19 @@ export class BitbucketPrCache {
     return prCache.getPrs();
   }
 
-  private addPr(pr: Pr): void {
+  private setPr(pr: Pr): void {
     logger.debug(`Adding PR #${pr.number} to the PR cache`);
     this.cache.items[pr.number] = pr;
   }
 
-  static async addPr(
+  static async setPr(
     http: BitbucketHttp,
     repo: string,
     author: string | null,
     item: Pr,
   ): Promise<void> {
     const prCache = await BitbucketPrCache.init(http, repo, author);
-    prCache.addPr(item);
+    prCache.setPr(item);
   }
 
   private reconcile(rawItems: PrResponse[]): void {
diff --git a/lib/modules/platform/gitea/index.ts b/lib/modules/platform/gitea/index.ts
index d67cf0ceea290e64b85409c1092705e21fd62663..697be51f84b41167c62129898266facfaf6471d6 100644
--- a/lib/modules/platform/gitea/index.ts
+++ b/lib/modules/platform/gitea/index.ts
@@ -483,7 +483,7 @@ const platform: Platform = {
 
       // Add pull request to cache for further lookups / queries
       if (pr) {
-        await GiteaPrCache.addPr(giteaHttp, config.repository, botUserName, pr);
+        await GiteaPrCache.setPr(giteaHttp, config.repository, botUserName, pr);
       }
     }
 
@@ -580,7 +580,7 @@ const platform: Platform = {
         throw new Error('Can not parse newly created Pull Request');
       }
 
-      await GiteaPrCache.addPr(giteaHttp, config.repository, botUserName, pr);
+      await GiteaPrCache.setPr(giteaHttp, config.repository, botUserName, pr);
       return pr;
     } catch (err) {
       // When the user manually deletes a branch from Renovate, the PR remains but is no longer linked to any branch. In
@@ -673,7 +673,7 @@ const platform: Platform = {
     );
     const pr = toRenovatePR(gpr, botUserName);
     if (pr) {
-      await GiteaPrCache.addPr(giteaHttp, config.repository, botUserName, pr);
+      await GiteaPrCache.setPr(giteaHttp, config.repository, botUserName, pr);
     }
   },
 
diff --git a/lib/modules/platform/gitea/pr-cache.ts b/lib/modules/platform/gitea/pr-cache.ts
index d3192d767e14f3f8ca1e6e377d3f896d93d3919b..b26085d97a95df70f72573dae91b3d16894b717d 100644
--- a/lib/modules/platform/gitea/pr-cache.ts
+++ b/lib/modules/platform/gitea/pr-cache.ts
@@ -66,18 +66,18 @@ export class GiteaPrCache {
     return prCache.getPrs();
   }
 
-  private addPr(item: Pr): void {
+  private setPr(item: Pr): void {
     this.cache.items[item.number] = item;
   }
 
-  static async addPr(
+  static async setPr(
     http: GiteaHttp,
     repo: string,
     author: string,
     item: Pr,
   ): Promise<void> {
     const prCache = await GiteaPrCache.init(http, repo, author);
-    prCache.addPr(item);
+    prCache.setPr(item);
   }
 
   private reconcile(rawItems: PR[]): boolean {