From 7d8fde99f128e3c415fa369eb8772c216901e0d2 Mon Sep 17 00:00:00 2001 From: Trey Ivy Date: Thu, 24 Oct 2024 16:17:56 +0000 Subject: [PATCH] repoURL --- frontend/src/components/SourceControlDisplay/index.tsx | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/frontend/src/components/SourceControlDisplay/index.tsx b/frontend/src/components/SourceControlDisplay/index.tsx index 3766777..cc32cc9 100644 --- a/frontend/src/components/SourceControlDisplay/index.tsx +++ b/frontend/src/components/SourceControlDisplay/index.tsx @@ -15,13 +15,13 @@ const SourceControlDisplay: React.FC<{ sourceControlData: SourceControl | undefi if (!ghUrl.endsWith("/")) { ghUrl += "/" } - const runURL = ghUrl + sourceControlData?.repoURL + "/actions/runs/" + sourceControlData?.runID const repoUrl = ghUrl + sourceControlData?.repoURL + const runURL = repoUrl + "/actions/runs/" + sourceControlData?.runID const actorURL = ghUrl + sourceControlData?.actor - const branchURL = ghUrl + sourceControlData?.repoURL + "/tree/" + sourceControlData?.branch - const commitURL = ghUrl + sourceControlData?.repoURL + "/commit/" + sourceControlData?.commitSha + const branchURL = repoUrl + "/tree/" + sourceControlData?.branch + const commitURL = repoUrl + "/commit/" + sourceControlData?.commitSha const prParts = sourceControlData?.refs?.split("/") ?? "" - const prURL = ghUrl + sourceControlData?.repoURL + "/" + prParts[1] + "/" + prParts[2] + const prURL = repoUrl + "/" + prParts[1] + "/" + prParts[2] return ( @@ -32,7 +32,7 @@ const SourceControlDisplay: React.FC<{ sourceControlData: SourceControl | undefi {sourceControlData?.repoURL} - + {sourceControlData?.branch}