Skip to content

Commit

Permalink
Fix pipeline streaming
Browse files Browse the repository at this point in the history
  • Loading branch information
MariusStorhaug committed Oct 29, 2023
1 parent 6c2eef8 commit 7134cfc
Show file tree
Hide file tree
Showing 76 changed files with 228 additions and 81 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -40,6 +40,7 @@
Body = $body
}

(Invoke-GitHubAPI @inputObject).Response

Invoke-GitHubAPI @inputObject | ForEach-Object {
Write-Output $_.Response
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -43,6 +43,8 @@
Body = $body
}

(Invoke-GitHubAPI @inputObject).Response
Invoke-GitHubAPI @inputObject | ForEach-Object {
Write-Output $_.Response
}

}
5 changes: 3 additions & 2 deletions src/GitHub/private/Organization/Get-GitHubMyOrganization.ps1
Original file line number Diff line number Diff line change
Expand Up @@ -41,6 +41,7 @@
Body = $body
}

(Invoke-GitHubAPI @inputObject).Response

Invoke-GitHubAPI @inputObject | ForEach-Object {
Write-Output $_.Response
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -43,6 +43,8 @@
Method = 'GET'
}

(Invoke-GitHubAPI @inputObject).Response
Invoke-GitHubAPI @inputObject | ForEach-Object {
Write-Output $_.Response
}

}
Original file line number Diff line number Diff line change
Expand Up @@ -43,6 +43,7 @@
Body = $body
}

(Invoke-GitHubAPI @inputObject).Response

Invoke-GitHubAPI @inputObject | ForEach-Object {
Write-Output $_.Response
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -39,6 +39,7 @@
Method = 'GET'
}

(Invoke-GitHubAPI @inputObject).Response

Invoke-GitHubAPI @inputObject | ForEach-Object {
Write-Output $_.Response
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -48,6 +48,7 @@
Body = $body
}

(Invoke-GitHubAPI @inputObject).Response

Invoke-GitHubAPI @inputObject | ForEach-Object {
Write-Output $_.Response
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -42,6 +42,8 @@
Body = $body
}

(Invoke-GitHubAPI @inputObject).Response
Invoke-GitHubAPI @inputObject | ForEach-Object {
Write-Output $_.Response
}

}
Original file line number Diff line number Diff line change
Expand Up @@ -39,6 +39,8 @@
Method = 'GET'
}

(Invoke-GitHubAPI @inputObject).Response
Invoke-GitHubAPI @inputObject | ForEach-Object {
Write-Output $_.Response
}

}
Original file line number Diff line number Diff line change
Expand Up @@ -38,6 +38,8 @@
Method = 'GET'
}

(Invoke-GitHubAPI @inputObject).Response
Invoke-GitHubAPI @inputObject | ForEach-Object {
Write-Output $_.Response
}

}
Original file line number Diff line number Diff line change
Expand Up @@ -34,6 +34,8 @@
Method = 'GET'
}

(Invoke-GitHubAPI @inputObject).Response
Invoke-GitHubAPI @inputObject | ForEach-Object {
Write-Output $_.Response
}

}
Original file line number Diff line number Diff line change
Expand Up @@ -31,6 +31,8 @@
Body = $body
}

(Invoke-GitHubAPI @inputObject).Response
Invoke-GitHubAPI @inputObject | ForEach-Object {
Write-Output $_.Response
}

}
4 changes: 3 additions & 1 deletion src/GitHub/private/Users/Emails/Get-GitHubUserAllEmail.ps1
Original file line number Diff line number Diff line change
Expand Up @@ -33,6 +33,8 @@
Body = $body
}

(Invoke-GitHubAPI @inputObject).Response
Invoke-GitHubAPI @inputObject | ForEach-Object {
Write-Output $_.Response
}

}
Original file line number Diff line number Diff line change
Expand Up @@ -35,6 +35,8 @@
Body = $body
}

(Invoke-GitHubAPI @inputObject).Response
Invoke-GitHubAPI @inputObject | ForEach-Object {
Write-Output $_.Response
}

}
Original file line number Diff line number Diff line change
Expand Up @@ -42,6 +42,8 @@
Body = $body
}

(Invoke-GitHubAPI @inputObject).Response
Invoke-GitHubAPI @inputObject | ForEach-Object {
Write-Output $_.Response
}

}
Original file line number Diff line number Diff line change
Expand Up @@ -32,6 +32,8 @@
Body = $body
}

(Invoke-GitHubAPI @inputObject).Response
Invoke-GitHubAPI @inputObject | ForEach-Object {
Write-Output $_.Response
}

}
Original file line number Diff line number Diff line change
Expand Up @@ -42,6 +42,8 @@
Body = $body
}

(Invoke-GitHubAPI @inputObject).Response
Invoke-GitHubAPI @inputObject | ForEach-Object {
Write-Output $_.Response
}

}
Original file line number Diff line number Diff line change
Expand Up @@ -33,6 +33,8 @@
Body = $body
}

(Invoke-GitHubAPI @inputObject).Response
Invoke-GitHubAPI @inputObject | ForEach-Object {
Write-Output $_.Response
}

}
Original file line number Diff line number Diff line change
Expand Up @@ -40,6 +40,8 @@
Body = $body
}

(Invoke-GitHubAPI @inputObject).Response
Invoke-GitHubAPI @inputObject | ForEach-Object {
Write-Output $_.Response
}

}
4 changes: 3 additions & 1 deletion src/GitHub/private/Users/GPG-Keys/Get-GitHubUserMyGpgKey.ps1
Original file line number Diff line number Diff line change
Expand Up @@ -34,6 +34,8 @@
Body = $body
}

(Invoke-GitHubAPI @inputObject).Response
Invoke-GitHubAPI @inputObject | ForEach-Object {
Write-Output $_.Response
}

}
Original file line number Diff line number Diff line change
Expand Up @@ -33,6 +33,8 @@
Method = 'GET'
}

(Invoke-GitHubAPI @inputObject).Response
Invoke-GitHubAPI @inputObject | ForEach-Object {
Write-Output $_.Response
}

}
4 changes: 3 additions & 1 deletion src/GitHub/private/Users/Get-GitHubAllUser.ps1
Original file line number Diff line number Diff line change
Expand Up @@ -39,6 +39,8 @@
Body = $body
}

(Invoke-GitHubAPI @inputObject).Response
Invoke-GitHubAPI @inputObject | ForEach-Object {
Write-Output $_.Response
}

}
4 changes: 3 additions & 1 deletion src/GitHub/private/Users/Get-GitHubMyUser.ps1
Original file line number Diff line number Diff line change
Expand Up @@ -27,6 +27,8 @@
Method = 'GET'
}

(Invoke-GitHubAPI @inputObject).Response
Invoke-GitHubAPI @inputObject | ForEach-Object {
Write-Output $_.Response
}

}
4 changes: 3 additions & 1 deletion src/GitHub/private/Users/Get-GitHubUserByName.ps1
Original file line number Diff line number Diff line change
Expand Up @@ -44,6 +44,8 @@
Method = 'GET'
}

(Invoke-GitHubAPI @inputObject).Response
Invoke-GitHubAPI @inputObject | ForEach-Object {
Write-Output $_.Response
}

}
4 changes: 3 additions & 1 deletion src/GitHub/private/Users/Keys/Get-GitHubUserKeyForUser.ps1
Original file line number Diff line number Diff line change
Expand Up @@ -40,6 +40,8 @@
Body = $body
}

(Invoke-GitHubAPI @inputObject).Response
Invoke-GitHubAPI @inputObject | ForEach-Object {
Write-Output $_.Response
}

}
4 changes: 3 additions & 1 deletion src/GitHub/private/Users/Keys/Get-GitHubUserMyKey.ps1
Original file line number Diff line number Diff line change
Expand Up @@ -34,6 +34,8 @@
Body = $body
}

(Invoke-GitHubAPI @inputObject).Response
Invoke-GitHubAPI @inputObject | ForEach-Object {
Write-Output $_.Response
}

}
4 changes: 3 additions & 1 deletion src/GitHub/private/Users/Keys/Get-GitHubUserMyKeyById.ps1
Original file line number Diff line number Diff line change
Expand Up @@ -33,6 +33,8 @@
Method = 'GET'
}

(Invoke-GitHubAPI @inputObject).Response
Invoke-GitHubAPI @inputObject | ForEach-Object {
Write-Output $_.Response
}

}
Original file line number Diff line number Diff line change
Expand Up @@ -34,6 +34,8 @@
Body = $body
}

(Invoke-GitHubAPI @inputObject).Response
Invoke-GitHubAPI @inputObject | ForEach-Object {
Write-Output $_.Response
}

}
Original file line number Diff line number Diff line change
Expand Up @@ -34,6 +34,8 @@
Method = 'GET'
}

(Invoke-GitHubAPI @inputObject).Response
Invoke-GitHubAPI @inputObject | ForEach-Object {
Write-Output $_.Response
}

}
Original file line number Diff line number Diff line change
Expand Up @@ -40,6 +40,8 @@
Body = $body
}

(Invoke-GitHubAPI @inputObject).Response
Invoke-GitHubAPI @inputObject | ForEach-Object {
Write-Output $_.Response
}

}
Original file line number Diff line number Diff line change
Expand Up @@ -32,6 +32,8 @@
Body = $body
}

(Invoke-GitHubAPI @inputObject).Response
Invoke-GitHubAPI @inputObject | ForEach-Object {
Write-Output $_.Response
}

}
Original file line number Diff line number Diff line change
Expand Up @@ -32,6 +32,8 @@
Method = 'GET'
}

(Invoke-GitHubAPI @inputObject).Response
Invoke-GitHubAPI @inputObject | ForEach-Object {
Write-Output $_.Response
}

}
4 changes: 3 additions & 1 deletion src/GitHub/public/Actions/Get-GitHubWorkflow.ps1
Original file line number Diff line number Diff line change
Expand Up @@ -46,6 +46,8 @@
Body = $body
}

(Invoke-GitHubAPI @inputObject).Response.workflows
Invoke-GitHubAPI @inputObject | ForEach-Object {
Write-Output $_.Response.workflows
}

}
4 changes: 3 additions & 1 deletion src/GitHub/public/Actions/Get-GitHubWorkflowRun.ps1
Original file line number Diff line number Diff line change
Expand Up @@ -44,6 +44,8 @@
Body = $body
}

(Invoke-GitHubAPI @inputObject).Response.workflow_runs
Invoke-GitHubAPI @inputObject | ForEach-Object {
Write-Output $_.Response.workflow_runs
}

}
4 changes: 3 additions & 1 deletion src/GitHub/public/Actions/Get-GitHubWorkflowUsage.ps1
Original file line number Diff line number Diff line change
Expand Up @@ -43,6 +43,8 @@
APIEndpoint = "/repos/$Owner/$Repo/actions/workflows/$ID/timing"
}

(Invoke-GitHubAPI @inputObject).Response.billable
Invoke-GitHubAPI @inputObject | ForEach-Object {
Write-Output $_.Response.billable
}

}
4 changes: 3 additions & 1 deletion src/GitHub/public/Actions/Remove-GitHubWorkflowRun.ps1
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,9 @@
}

if ($PSCmdlet.ShouldProcess("workflow run with ID [$RunID] in [$Owner/$Repo]", 'Delete')) {
(Invoke-GitHubAPI @inputObject).Response
Invoke-GitHubAPI @inputObject | ForEach-Object {
Write-Output $_.Response
}
}

}
4 changes: 3 additions & 1 deletion src/GitHub/public/Actions/Start-GitHubWorkflow.ps1
Original file line number Diff line number Diff line change
Expand Up @@ -60,7 +60,9 @@
}

if ($PSCmdlet.ShouldProcess("workflow with ID [$ID] in [$Owner/$Repo]", 'Start')) {
(Invoke-GitHubAPI @inputObject).Response
Invoke-GitHubAPI @inputObject | ForEach-Object {
Write-Output $_.Response
}
}

}
4 changes: 3 additions & 1 deletion src/GitHub/public/Actions/Start-GitHubWorkflowReRun.ps1
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,9 @@
}

if ($PSCmdlet.ShouldProcess("workflow with ID [$ID] in [$Owner/$Repo]", 'Re-run')) {
(Invoke-GitHubAPI @inputObject).Response
Invoke-GitHubAPI @inputObject | ForEach-Object {
Write-Output $_.Response
}
}

}
4 changes: 3 additions & 1 deletion src/GitHub/public/Actions/Stop-GitHubWorkflowRun.ps1
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,9 @@
}

if ($PSCmdlet.ShouldProcess("workflow run with ID [$ID] in [$Owner/$Repo]", 'Cancel/Stop')) {
(Invoke-GitHubAPI @inputObject).Response
Invoke-GitHubAPI @inputObject | ForEach-Object {
Write-Output $_.Response
}
}

}
Loading

0 comments on commit 7134cfc

Please sign in to comment.