File tree Expand file tree Collapse file tree 1 file changed +7
-2
lines changed Expand file tree Collapse file tree 1 file changed +7
-2
lines changed Original file line number Diff line number Diff line change @@ -773,12 +773,17 @@ const getOrg = (url: URL | HTMLAnchorElement | Location = location): {name: stri
773
773
return undefined ;
774
774
} ;
775
775
776
+ export type NameWithOwner = `${string } /${string } `;
777
+
776
778
export type RepositoryInfo = {
779
+ /** The repo owner/user */
777
780
owner : string ;
781
+
782
+ /** The repo name */
778
783
name : string ;
779
784
780
785
/** The 'user/repo' part from an URL */
781
- nameWithOwner : string ;
786
+ nameWithOwner : NameWithOwner ;
782
787
783
788
/** A repo's subpage
784
789
@example '/user/repo/issues/' -> 'issues'
@@ -813,7 +818,7 @@ const getRepo = (url?: URL | HTMLAnchorElement | Location | string): RepositoryI
813
818
return {
814
819
owner,
815
820
name,
816
- nameWithOwner : owner + '/' + name ,
821
+ nameWithOwner : ` ${ owner } / ${ name } ` ,
817
822
path : path . join ( '/' ) ,
818
823
} ;
819
824
} ;
You can’t perform that action at this time.
0 commit comments