Skip to content

Commit e244a8d

Browse files
Merge pull request #100 from StartAutomating/Get-ADORepository-Fix
Get-ADORepository: Making -PullRequestID mandatory (fixing #99)
2 parents 737eab6 + c380b85 commit e244a8d

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

Get-ADORepository.ps1

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -38,10 +38,10 @@
3838
$Project,
3939

4040
# The Repository ID
41-
[Parameter(Mandatory,ParameterSetName='git/repositories/{repositoryId}',ValueFromPipelineByPropertyName)]
42-
[Parameter(Mandatory,ParameterSetName='git/repositories/{repositoryId}/items',ValueFromPipelineByPropertyName)]
43-
[Parameter(Mandatory,ParameterSetName='git/repositories/{repositoryId}/pullrequests',ValueFromPipelineByPropertyName)]
4441
[Parameter(Mandatory,ParameterSetName='git/repositories/{repositoryId}/pullrequests/{pullRequestId}',ValueFromPipelineByPropertyName)]
42+
[Parameter(Mandatory,ParameterSetName='git/repositories/{repositoryId}/pullrequests',ValueFromPipelineByPropertyName)]
43+
[Parameter(Mandatory,ParameterSetName='git/repositories/{repositoryId}/items',ValueFromPipelineByPropertyName)]
44+
[Parameter(Mandatory,ParameterSetName='git/repositories/{repositoryId}',ValueFromPipelineByPropertyName)]
4545
[string]
4646
$RepositoryID,
4747

@@ -167,7 +167,7 @@
167167
$PullRequestStatus,
168168

169169
# Get pull request with a specific id
170-
[Parameter(ParameterSetName='git/repositories/{repositoryId}/pullrequests/{pullRequestId}',ValueFromPipelineByPropertyName)]
170+
[Parameter(Mandatory,ParameterSetName='git/repositories/{repositoryId}/pullrequests/{pullRequestId}',ValueFromPipelineByPropertyName)]
171171
[Alias('PRID')]
172172
[string]
173173
$PullRequestID,

0 commit comments

Comments
 (0)