From 47de05d1bf9c7808ace3d2b588205d2f7c76bd8b Mon Sep 17 00:00:00 2001 From: Trey Ivy Date: Thu, 24 Oct 2024 16:12:58 +0000 Subject: [PATCH 1/3] fix hardcodd runid on src cntrol tab --- frontend/src/components/SourceControlDisplay/index.tsx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/frontend/src/components/SourceControlDisplay/index.tsx b/frontend/src/components/SourceControlDisplay/index.tsx index e93f572..0aaaa33 100644 --- a/frontend/src/components/SourceControlDisplay/index.tsx +++ b/frontend/src/components/SourceControlDisplay/index.tsx @@ -15,7 +15,7 @@ const SourceControlDisplay: React.FC<{ sourceControlData: SourceControl | undefi if (!ghUrl.endsWith("/")) { ghUrl += "/" } - const runURL = ghUrl + sourceControlData?.repoURL + "/actions/runs/" + "10976627244" + const runURL = ghUrl + sourceControlData?.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 From 74e9deb0714d3e60fd75bbd4b8bc1ff1441cdf82 Mon Sep 17 00:00:00 2001 From: Trey Ivy Date: Thu, 24 Oct 2024 16:15:15 +0000 Subject: [PATCH 2/3] repo url --- frontend/src/components/SourceControlDisplay/index.tsx | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/frontend/src/components/SourceControlDisplay/index.tsx b/frontend/src/components/SourceControlDisplay/index.tsx index 0aaaa33..3766777 100644 --- a/frontend/src/components/SourceControlDisplay/index.tsx +++ b/frontend/src/components/SourceControlDisplay/index.tsx @@ -16,6 +16,7 @@ const SourceControlDisplay: React.FC<{ sourceControlData: SourceControl | undefi ghUrl += "/" } const runURL = ghUrl + sourceControlData?.repoURL + "/actions/runs/" + sourceControlData?.runID + const repoUrl = ghUrl + sourceControlData?.repoURL const actorURL = ghUrl + sourceControlData?.actor const branchURL = ghUrl + sourceControlData?.repoURL + "/tree/" + sourceControlData?.branch const commitURL = ghUrl + sourceControlData?.repoURL + "/commit/" + sourceControlData?.commitSha @@ -28,8 +29,8 @@ const SourceControlDisplay: React.FC<{ sourceControlData: SourceControl | undefi - - {sourceControlData?.repoURL} + + {sourceControlData?.repoURL} {sourceControlData?.branch} From 7d8fde99f128e3c415fa369eb8772c216901e0d2 Mon Sep 17 00:00:00 2001 From: Trey Ivy Date: Thu, 24 Oct 2024 16:17:56 +0000 Subject: [PATCH 3/3] 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}