File tree Expand file tree Collapse file tree 2 files changed +4
-6
lines changed Expand file tree Collapse file tree 2 files changed +4
-6
lines changed Original file line number Diff line number Diff line change @@ -89,6 +89,9 @@ function Get-GitHubEvent
8989 ' ProvidedEvent' = $PSBoundParameters.ContainsKey (' EventID' )
9090 }
9191
92+ $uriFragment = " repos/$OwnerName /$RepositoryName /issues/events"
93+ $description = " Getting events for $RepositoryName "
94+
9295 if ($PSBoundParameters.ContainsKey (' EventID' ))
9396 {
9497 $uriFragment = " repos/$OwnerName /$RepositoryName /issues/events/$EventID "
@@ -99,11 +102,6 @@ function Get-GitHubEvent
99102 $uriFragment = " repos/$OwnerName /$RepositoryName /issues/$Issue /events"
100103 $description = " Getting events for issue $Issue in $RepositoryName "
101104 }
102- else
103- {
104- $uriFragment = " repos/$OwnerName /$RepositoryName /issues/events"
105- $description = " Getting events for $RepositoryName "
106- }
107105
108106 $acceptHeaders = @ (
109107 ' application/vnd.github.starfox-preview+json' ,
Original file line number Diff line number Diff line change 140140
141141 Context ' For getting an event directly' {
142142 $singleEvent = Get-GitHubEvent - OwnerName $ownerName - RepositoryName $repositoryName - EventID $events [0 ].id
143-
143+
144144 It ' Should have the correct event type' {
145145 $singleEvent.event | Should be ' reopened'
146146 }
You can’t perform that action at this time.
0 commit comments