Commit 37f5081
authored
🪲 [Fix]: Link Context into Team GraphQL commands (#230)
## Description
This pull request includes fixes to the context handling when sending
requests to the GitHub GraphQL API from GitHub Team functions, by adding
the `-Context` parameter to the `Invoke-GitHubGraphQLQuery` function
call.
Enhancements to context handling:
*
[`src/functions/private/Teams/Get-GitHubTeamBySlug.ps1`](diffhunk://#diff-3400ce2da77f23982706378413679012224099e65f2e0d53fdb48afea4e1d25bL86-R86):
Added the `-Context $Context` parameter to the
`Invoke-GitHubGraphQLQuery` function call to ensure the context is
passed when querying a specific GitHub team by slug.
*
[`src/functions/private/Teams/Get-GitHubTeamListByOrg.ps1`](diffhunk://#diff-af6abadf6c54e780d7919db9bcc9d74cd401faab345af0b4e80c46ab76b269baL95-R95):
Added the `-Context $Context` parameter to the
`Invoke-GitHubGraphQLQuery` function call to ensure the context is
passed when querying the list of GitHub teams by organization.
## Type of change
<!-- Use the check-boxes [x] on the options that are relevant. -->
- [ ] 📖 [Docs]
- [x] 🪲 [Fix]
- [ ] 🩹 [Patch]
- [ ] 1 parent a2e0254 commit 37f5081
File tree
2 files changed
+2
-2
lines changed- src/functions/private/Teams
2 files changed
+2
-2
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
83 | 83 | | |
84 | 84 | | |
85 | 85 | | |
86 | | - | |
| 86 | + | |
87 | 87 | | |
88 | 88 | | |
89 | 89 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
92 | 92 | | |
93 | 93 | | |
94 | 94 | | |
95 | | - | |
| 95 | + | |
96 | 96 | | |
97 | 97 | | |
98 | 98 | | |
| |||
0 commit comments