diff --git a/frontend/src/components/SourceControlDisplay/index.tsx b/frontend/src/components/SourceControlDisplay/index.tsx index e93f572..cc32cc9 100644 --- a/frontend/src/components/SourceControlDisplay/index.tsx +++ b/frontend/src/components/SourceControlDisplay/index.tsx @@ -15,12 +15,13 @@ const SourceControlDisplay: React.FC<{ sourceControlData: SourceControl | undefi if (!ghUrl.endsWith("/")) { ghUrl += "/" } - const runURL = ghUrl + sourceControlData?.repoURL + "/actions/runs/" + "10976627244" + 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 ( @@ -28,10 +29,10 @@ const SourceControlDisplay: React.FC<{ sourceControlData: SourceControl | undefi - - {sourceControlData?.repoURL} + + {sourceControlData?.repoURL} - + {sourceControlData?.branch}