From 5988542d11b1acd3a2af0fa27c4a4517d405164f Mon Sep 17 00:00:00 2001 From: xHyroM Date: Thu, 14 Jul 2022 08:59:18 +0200 Subject: [PATCH] fix(githubUtils): dont replace repository --- src/utils/githubUtils.ts | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/utils/githubUtils.ts b/src/utils/githubUtils.ts index 52de7d7..1e69fce 100644 --- a/src/utils/githubUtils.ts +++ b/src/utils/githubUtils.ts @@ -138,7 +138,7 @@ export const setIssue = async(issue: Issue) => { } else { // @ts-expect-error addToDb.run([ - issue.repository.replace('https://api.github.com/repos/', ''), + issue.repository, issue.title, issue.number, issue.state, @@ -160,7 +160,7 @@ export const setPullRequest = async(pull: PullRequest) => { } else { // @ts-expect-error addToDb.run([ - pull.repository.replace('https://api.github.com/repos/', ''), + pull.repository, pull.title, pull.number, pull.state,