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
89
89
' ProvidedEvent' = $PSBoundParameters.ContainsKey (' EventID' )
90
90
}
91
91
92
+ $uriFragment = " repos/$OwnerName /$RepositoryName /issues/events"
93
+ $description = " Getting events for $RepositoryName "
94
+
92
95
if ($PSBoundParameters.ContainsKey (' EventID' ))
93
96
{
94
97
$uriFragment = " repos/$OwnerName /$RepositoryName /issues/events/$EventID "
@@ -99,11 +102,6 @@ function Get-GitHubEvent
99
102
$uriFragment = " repos/$OwnerName /$RepositoryName /issues/$Issue /events"
100
103
$description = " Getting events for issue $Issue in $RepositoryName "
101
104
}
102
- else
103
- {
104
- $uriFragment = " repos/$OwnerName /$RepositoryName /issues/events"
105
- $description = " Getting events for $RepositoryName "
106
- }
107
105
108
106
$acceptHeaders = @ (
109
107
' application/vnd.github.starfox-preview+json' ,
Original file line number Diff line number Diff line change 140
140
141
141
Context ' For getting an event directly' {
142
142
$singleEvent = Get-GitHubEvent - OwnerName $ownerName - RepositoryName $repositoryName - EventID $events [0 ].id
143
-
143
+
144
144
It ' Should have the correct event type' {
145
145
$singleEvent.event | Should be ' reopened'
146
146
}
You can’t perform that action at this time.
0 commit comments