Skip to content

Commit 1d5d5c6

Browse files
committed
feat: added platform dinamically to commit links
1 parent 1b9d9c9 commit 1d5d5c6

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

src/components/ProjectCompartor.tsx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -113,15 +113,15 @@ function ProjectComparator() {
113113
<p data-testid="commits-analysis">
114114
Analysis of commits{" "}
115115
<a
116-
href={`https://github.com/${org}/${repo}/commit/${currentData.repo.commit}`}
116+
href={`https://${platform}/${org}/${repo}/commit/${currentData.repo.commit}`}
117117
target="_blank"
118118
rel="noreferrer"
119119
>
120120
{`(${currentData.repo.commit.substring(0, 8)})`}
121121
</a>{" "}
122122
and{" "}
123123
<a
124-
href={`https://github.com/${org}/${repo}/commit/${previousData.repo.commit}`}
124+
href={`https://${platform}/${org}/${repo}/commit/${previousData.repo.commit}`}
125125
target="_blank"
126126
rel="noreferrer"
127127
>

src/components/ProjectDetails.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -54,7 +54,7 @@ function ProjectDetails() {
5454
<p data-testid="current-commit">
5555
Current commit{" "}
5656
<a
57-
href={`https://github.com/${org}/${repo}/commit/${data.repo.commit}`}
57+
href={`https://${platform}/${org}/${repo}/commit/${data.repo.commit}`}
5858
target="_blank"
5959
rel="noreferrer"
6060
>

0 commit comments

Comments
 (0)