File tree Expand file tree Collapse file tree 1 file changed +2
-2
lines changed
src/components/repositories Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Original file line number Diff line number Diff line change @@ -24,7 +24,7 @@ export function RepoBadge({ repositoryId, commit }: Props) {
24
24
25
25
if ( data ?. body ?. source ?. attribute === "GitHubCodeRepository" ) {
26
26
name = `${ repositoryMetadata ?. owner } /${ repositoryMetadata ?. repository } ` ;
27
- url = `https://www.github.com/${ name } ` ;
27
+ url = `https://www.github.com/${ name } ` + ( commit ? `/tree/ ${ commit } ` : "" ) ;
28
28
} else if ( data ?. body ?. source ?. attribute === "GitLabCodeRepository" ) {
29
29
name = `${ repositoryMetadata ?. group } /${ repositoryMetadata ?. project } ` ;
30
30
url = `https://www.gitlab.com/${ name } ` ;
@@ -50,7 +50,7 @@ export function RepoBadge({ repositoryId, commit }: Props) {
50
50
< div className = "group/copybutton mr-1" >
51
51
< Tag
52
52
color = "grey"
53
- className = "inline-flex items-center font-semibold text-neutral-900"
53
+ className = "inline-flex items-center font-semibold text-neutral-900"
54
54
rounded = { false }
55
55
emphasis = "subtle"
56
56
>
You can’t perform that action at this time.
0 commit comments