Skip to content

Commit b52fa11

Browse files
committed
fix: absolute URLs
1 parent a3c4d01 commit b52fa11

File tree

3 files changed

+5
-5
lines changed

3 files changed

+5
-5
lines changed

src/api.psm1

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,7 @@ function Invoke-SourcegraphApiRequest {
3333
[Parameter(Position = 1)]
3434
$Variables = @{},
3535

36-
[string] $Endpoint = 'https://sourcegraph.com',
36+
[Uri] $Endpoint = 'https://sourcegraph.com',
3737

3838
[string] $Token
3939
)

src/repos.psm1

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -38,7 +38,7 @@ function Get-SourcegraphRepository {
3838
[string] $SortBy = 'REPOSITORY_NAME',
3939
[switch] $Descending,
4040

41-
[string] $Endpoint = 'https://sourcegraph.com',
41+
[Uri] $Endpoint = 'https://sourcegraph.com',
4242
[ValidateNotNullOrEmpty()]
4343
[string] $Token
4444
)
@@ -75,4 +75,4 @@ function Get-SourcegraphRepository {
7575
}
7676
}
7777
}
78-
Set-Alias Get-SrcRepositories Get-SourcegraphRepositories
78+
Set-Alias Get-SrcRepository Get-SourcegraphRepository

src/users.psm1

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@ function New-SourcegraphUser {
1717
#>
1818
[CmdletBinding(SupportsShouldProcess)]
1919
param(
20-
[string] $Endpoint = 'https://sourcegraph.com',
20+
[Uri] $Endpoint = 'https://sourcegraph.com',
2121

2222
[ValidateNotNullOrEmpty()]
2323
[Parameter(Mandatory)]
@@ -54,7 +54,7 @@ function Get-SourcegraphUser {
5454
#>
5555
[CmdletBinding(SupportsPaging)]
5656
param(
57-
[string] $Endpoint = 'https://sourcegraph.com',
57+
[Uri] $Endpoint = 'https://sourcegraph.com',
5858
[string] $Username,
5959
[string] $Query,
6060
[string] $Tag,

0 commit comments

Comments
 (0)