Skip to content

Commit 413bc5c

Browse files
🪲 [Fix]: Update Get-GitHubAppInstallableOrganization to handle array of objects (#404)
## Description This pull request includes a small change to the `Get-GitHubAppInstallableOrganization.ps1` function. The change modifies how the `Response` object is processed, ensuring that each item in the response is properly converted into a `GitHubOrganization` object. ## Type of change <!-- Use the check-boxes [x] on the options that are relevant. --> - [ ] 📖 [Docs] - [x] 🪲 [Fix] - [ ] 🩹 [Patch] - [ ] ⚠️ [Security fix] - [ ] 🚀 [Feature] - [ ] 🌟 [Breaking change] ## Checklist <!-- Use the check-boxes [x] on the options that are relevant. --> - [x] I have performed a self-review of my own code - [x] I have commented my code, particularly in hard-to-understand areas
1 parent 63c95b3 commit 413bc5c

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/functions/private/Apps/GitHub Apps/Get-GitHubAppInstallableOrganization.ps1

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -47,7 +47,7 @@
4747
}
4848

4949
Invoke-GitHubAPI @inputObject | ForEach-Object {
50-
[GitHubOrganization]::new($_.Response)
50+
$_.Response | ForEach-Object { [GitHubOrganization]::new($_) }
5151
}
5252
}
5353

0 commit comments

Comments
 (0)