diff --git a/lib/platform/bitbucket-server/index.ts b/lib/platform/bitbucket-server/index.ts
index 04b8b1450fe06b7c6b5ef0dd57c488cd8959c210..5b06c01dbc45b96ab7244c57c8f0e2d2449c9e0c 100644
--- a/lib/platform/bitbucket-server/index.ts
+++ b/lib/platform/bitbucket-server/index.ts
@@ -123,9 +123,9 @@ export async function getRepos(): Promise<string[]> {
 
 export async function getRawFile(
   fileName: string,
-  repo: string = config.repository
+  repoName: string = config.repository
 ): Promise<string | null> {
-  const [project, slug] = repo.split('/');
+  const [project, slug] = repoName.split('/');
   const fileUrl = `./rest/api/1.0/projects/${project}/repos/${slug}/browse/${fileName}?limit=20000`;
   const res = await bitbucketServerHttp.getJson<FileData>(fileUrl);
   const { isLastPage, lines, size } = res.body;
@@ -139,9 +139,9 @@ export async function getRawFile(
 
 export async function getJsonFile(
   fileName: string,
-  repo: string = config.repository
+  repoName: string = config.repository
 ): Promise<any | null> {
-  const raw = await getRawFile(fileName, repo);
+  const raw = await getRawFile(fileName, repoName);
   if (fileName.endsWith('.json5')) {
     return JSON5.parse(raw);
   }
diff --git a/lib/platform/bitbucket/index.ts b/lib/platform/bitbucket/index.ts
index 992b5a053084d765df789e2f88da76496dccda6d..4ec06444c1b78acbc90e40d1e87145aa8c3c42df 100644
--- a/lib/platform/bitbucket/index.ts
+++ b/lib/platform/bitbucket/index.ts
@@ -110,20 +110,20 @@ export async function getRepos(): Promise<string[]> {
 
 export async function getRawFile(
   fileName: string,
-  repo: string = config.repository
+  repoName: string = config.repository
 ): Promise<string | null> {
   // See: https://developer.atlassian.com/bitbucket/api/2/reference/resource/repositories/%7Bworkspace%7D/%7Brepo_slug%7D/src/%7Bcommit%7D/%7Bpath%7D
   const path = fileName;
-  const url = `/2.0/repositories/${repo}/src/HEAD/${path}`;
+  const url = `/2.0/repositories/${repoName}/src/HEAD/${path}`;
   const res = await bitbucketHttp.get(url);
   return res.body;
 }
 
 export async function getJsonFile(
   fileName: string,
-  repo: string = config.repository
+  repoName: string = config.repository
 ): Promise<any | null> {
-  const raw = await getRawFile(fileName, repo);
+  const raw = await getRawFile(fileName, repoName);
   if (fileName.endsWith('.json5')) {
     return JSON5.parse(raw);
   }
diff --git a/lib/platform/gitea/index.ts b/lib/platform/gitea/index.ts
index 22b23eab39f69c03675fe0c85205151abfba9c8b..e006e8883d530072c3f8a4a90392c4c5a3dde4d1 100644
--- a/lib/platform/gitea/index.ts
+++ b/lib/platform/gitea/index.ts
@@ -211,17 +211,17 @@ const platform: Platform = {
 
   async getRawFile(
     fileName: string,
-    repo: string = config.repository
+    repoName: string = config.repository
   ): Promise<string | null> {
-    const contents = await helper.getRepoContents(repo, fileName);
+    const contents = await helper.getRepoContents(repoName, fileName);
     return contents.contentString;
   },
 
   async getJsonFile(
     fileName: string,
-    repo: string = config.repository
+    repoName: string = config.repository
   ): Promise<any | null> {
-    const raw = await platform.getRawFile(fileName, repo);
+    const raw = await platform.getRawFile(fileName, repoName);
     if (fileName.endsWith('.json5')) {
       return JSON5.parse(raw);
     }
diff --git a/lib/platform/github/index.ts b/lib/platform/github/index.ts
index d22e223870645bb4a7a6729fc32bc5b72ba72bb3..e6b50f7f872ca02ab6d5918cbe4856d7110d51ee 100644
--- a/lib/platform/github/index.ts
+++ b/lib/platform/github/index.ts
@@ -173,9 +173,9 @@ async function getBranchProtection(
 
 export async function getRawFile(
   fileName: string,
-  repo: string = config.repository
+  repoName: string = config.repository
 ): Promise<string | null> {
-  const url = `repos/${repo}/contents/${fileName}`;
+  const url = `repos/${repoName}/contents/${fileName}`;
   const res = await githubApi.getJson<{ content: string }>(url);
   const buf = res.body.content;
   const str = Buffer.from(buf, 'base64').toString();
@@ -184,9 +184,9 @@ export async function getRawFile(
 
 export async function getJsonFile(
   fileName: string,
-  repo: string = config.repository
+  repoName: string = config.repository
 ): Promise<any | null> {
-  const raw = await getRawFile(fileName, repo);
+  const raw = await getRawFile(fileName, repoName);
   if (fileName.endsWith('.json5')) {
     return JSON5.parse(raw);
   }
diff --git a/lib/platform/gitlab/index.ts b/lib/platform/gitlab/index.ts
index f9aabbdfe3a5dfdc61714177924096d3c996b6b3..43e82367b2cb5144a08220ac7464bc694dc91e81 100644
--- a/lib/platform/gitlab/index.ts
+++ b/lib/platform/gitlab/index.ts
@@ -157,10 +157,10 @@ function urlEscape(str: string): string {
 
 export async function getRawFile(
   fileName: string,
-  repo: string = config.repository
+  repoName: string = config.repository
 ): Promise<string | null> {
   const escapedFileName = urlEscape(fileName);
-  const url = `projects/${repo}/repository/files/${escapedFileName}?ref=HEAD`;
+  const url = `projects/${repoName}/repository/files/${escapedFileName}?ref=HEAD`;
   const res = await gitlabApi.getJson<{ content: string }>(url);
   const buf = res.body.content;
   const str = Buffer.from(buf, 'base64').toString();
@@ -169,9 +169,9 @@ export async function getRawFile(
 
 export async function getJsonFile(
   fileName: string,
-  repo: string = config.repository
+  repoName: string = config.repository
 ): Promise<any | null> {
-  const raw = await getRawFile(fileName, repo);
+  const raw = await getRawFile(fileName, repoName);
   if (fileName.endsWith('.json5')) {
     return JSON5.parse(raw);
   }
diff --git a/lib/platform/types.ts b/lib/platform/types.ts
index 3d0e7aaaaac66ead301107e779f5aaaea9f06676..549d2368de8b5498dab354a23ad214ccc9848af7 100644
--- a/lib/platform/types.ts
+++ b/lib/platform/types.ts
@@ -152,8 +152,8 @@ export interface Platform {
   getIssueList(): Promise<Issue[]>;
   getIssue?(number: number, useCache?: boolean): Promise<Issue>;
   getVulnerabilityAlerts(): Promise<VulnerabilityAlert[]>;
-  getRawFile(fileName: string, repo?: string): Promise<string | null>;
-  getJsonFile(fileName: string, repo?: string): Promise<any | null>;
+  getRawFile(fileName: string, repoName?: string): Promise<string | null>;
+  getJsonFile(fileName: string, repoName?: string): Promise<any | null>;
   initRepo(config: RepoParams): Promise<RepoResult>;
   getPrList(): Promise<Pr[]>;
   ensureIssueClosing(title: string): Promise<void>;