Skip to content

Commit c53cfde

Browse files
committed
add function for generating x-access-token URL
1 parent 6dc725c commit c53cfde

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

Sources/UnidocRecords/Origins/Unidoc.GitHubOrigin.swift

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -73,6 +73,12 @@ extension Unidoc
7373
}
7474
extension Unidoc.GitHubOrigin
7575
{
76+
@inlinable public
77+
func https(token:GitHub.InstallationAccessToken) -> String
78+
{
79+
"https://x-access-token:\(token)@github.com/\(self.owner)/\(self.name)"
80+
}
81+
7682
@inlinable public
7783
var https:String
7884
{

0 commit comments

Comments
 (0)