From 272e0fab85f24f804e5af1a1d299049126043186 Mon Sep 17 00:00:00 2001 From: Karol Josef F Bustamante Date: Mon, 9 Dec 2024 20:09:21 -0500 Subject: [PATCH] fix url --- source/platforms/github/GitHubAPI.ts | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/source/platforms/github/GitHubAPI.ts b/source/platforms/github/GitHubAPI.ts index e6fc5a700..92dd947ef 100644 --- a/source/platforms/github/GitHubAPI.ts +++ b/source/platforms/github/GitHubAPI.ts @@ -329,9 +329,8 @@ export class GitHubAPI { getPullRequestComments = memoize(async (): Promise => { const pr = await this.getPullRequestInfo() const prNumber = pr.number - const repo = this.repoMetadata.repoSlug - const owner = pr.base.repo.owner.login - return await this.getAllOfResource(`repos/${owner}/${repo}/issues/${prNumber}/comments`) + const repoSlug = this.repoMetadata.repoSlug + return await this.getAllOfResource(`repos/${repoSlug}/issues/${prNumber}/comments`) }) getPullRequestInlineComments = async (