Skip to content

Commit d1e0a74

Browse files
committed
Revert "updated Get-AzDoPull~ and Set-AzDoPull~"
This reverts commit b7f5b02.
1 parent b7f5b02 commit d1e0a74

File tree

7 files changed

+7
-353
lines changed

7 files changed

+7
-353
lines changed

.gitignore

-3
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,3 @@
11
# Don't check in the Output dir
22
Output/
33
site/
4-
baswijdenes/
5-
test.ps1
6-
.vs

AzureDevOpsPowerShell/AzureDevOpsPowerShell.psd1

+1-1
Original file line numberDiff line numberDiff line change
@@ -126,7 +126,7 @@
126126
} # End of PrivateData hashtable
127127

128128
# HelpInfo URI of this module
129-
HelpInfoURI = 'https://github.com/WeAreInSpark/AzureDevOpsPowerShellAPI'
129+
# HelpInfoURI = ''
130130

131131
# Default prefix for commands exported from this module. Override the default prefix using Import-Module -Prefix.
132132
# DefaultCommandPrefix = ''

AzureDevOpsPowerShell/AzureDevOpsPowerShell.psm1

+5-5
Original file line numberDiff line numberDiff line change
@@ -2,11 +2,11 @@
22
$public = @(Get-ChildItem -Path (Join-Path -Path $PSScriptRoot -ChildPath 'Public/*.ps1') -Recurse -ErrorAction Stop)
33
$private = @(Get-ChildItem -Path (Join-Path -Path $PSScriptRoot -ChildPath 'Private/*.ps1') -Recurse -ErrorAction Stop)
44
foreach ($import in @($private + $public)) {
5-
try {
6-
. $import.FullName
7-
} catch {
8-
throw "Unable to dot source [$($import.FullName)]"
9-
}
5+
try {
6+
. $import.FullName
7+
} catch {
8+
throw "Unable to dot source [$($import.FullName)]"
9+
}
1010
}
1111

1212
Export-ModuleMember -Function $public.Basename

AzureDevOpsPowerShell/Private/Invoke-AzDoRestMethod.ps1

-3
Original file line numberDiff line numberDiff line change
@@ -82,9 +82,6 @@ function Invoke-AzDoRestMethod {
8282
}
8383

8484
if ($QueryParameters) {
85-
if ($QueryParameters -notlike "?*") {
86-
$QueryParameters = "?$QueryParameters"
87-
}
8885
$params.Uri = "$($Uri)?$($QueryParameters)&api-version=$($Version)"
8986
} else {
9087
$params.Uri = "$($Uri)?api-version=$($Version)"

AzureDevOpsPowerShell/Private/New-AzDoAuthHeader.ps1

+1-1
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ function New-AzDoAuthHeader {
88
)
99
if ($PSCmdlet.ShouldProcess("Creating new authentication header")) {
1010
Write-Verbose "Function: New-AzDoAuthHeader"
11-
if ([string]::IsNullOrEmpty($Pat)) {
11+
if ($Pat -eq '') {
1212
# validate if user is logged in to Azure PowerShell
1313
Write-Verbose "Using Access Token"
1414
try {

AzureDevOpsPowerShell/Public/Api/Git/PullRequests/Get-AzDoPullRequest.ps1

-141
This file was deleted.

AzureDevOpsPowerShell/Public/Api/Git/PullRequests/Set-AzDoPullRequest.ps1

-199
This file was deleted.

0 commit comments

Comments
 (0)