diff --git a/lib/workers/pr/changelog/release-notes.ts b/lib/workers/pr/changelog/release-notes.ts
index 6bc319e3a078e1af2b616f93896a0ab0d412d497..afbdb52698355c27a22c9008891a602fd9228268 100644
--- a/lib/workers/pr/changelog/release-notes.ts
+++ b/lib/workers/pr/changelog/release-notes.ts
@@ -146,7 +146,7 @@ export async function getReleaseNotesMd(
   repository: string,
   version: string,
   baseUrl: string,
-  githubApiBaseUrl: string
+  apiBaseUrl: string
 ): Promise<ChangeLogNotes | null> {
   logger.trace(`getReleaseNotesMd(${repository}, ${version})`);
   const skippedRepos = ['facebook/react-native'];
@@ -157,7 +157,7 @@ export async function getReleaseNotesMd(
   let changelogFile: string;
   let changelogMd = '';
   try {
-    let apiPrefix = githubApiBaseUrl.replace(/\/?$/, '/');
+    let apiPrefix = apiBaseUrl.replace(/\/?$/, '/');
 
     apiPrefix += `repos/${repository}/contents/`;
     const filesRes = await ghGot<{ name: string }[]>(apiPrefix);