From 9f7de7071a306b5711af2e7f338e0e6ad173c487 Mon Sep 17 00:00:00 2001 From: Marius Storhaug Date: Thu, 19 Dec 2024 12:45:48 +0100 Subject: [PATCH] Link context into GraphQL command --- src/functions/private/Teams/Get-GitHubTeamBySlug.ps1 | 2 +- src/functions/private/Teams/Get-GitHubTeamListByOrg.ps1 | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/src/functions/private/Teams/Get-GitHubTeamBySlug.ps1 b/src/functions/private/Teams/Get-GitHubTeamBySlug.ps1 index 7fb42f398..b8675c403 100644 --- a/src/functions/private/Teams/Get-GitHubTeamBySlug.ps1 +++ b/src/functions/private/Teams/Get-GitHubTeamBySlug.ps1 @@ -83,7 +83,7 @@ query(`$org: String!, `$teamSlug: String!) { } # Send the request to the GitHub GraphQL API - $response = Invoke-GitHubGraphQLQuery -Query $query -Variables $variables + $response = Invoke-GitHubGraphQLQuery -Query $query -Variables $variables -Context $Context # Extract team data $team = $response.data.organization.team diff --git a/src/functions/private/Teams/Get-GitHubTeamListByOrg.ps1 b/src/functions/private/Teams/Get-GitHubTeamListByOrg.ps1 index a1f90b4db..24f28cb3a 100644 --- a/src/functions/private/Teams/Get-GitHubTeamListByOrg.ps1 +++ b/src/functions/private/Teams/Get-GitHubTeamListByOrg.ps1 @@ -92,7 +92,7 @@ query(`$org: String!, `$after: String) { $variables['after'] = $after # Send the request to the GitHub GraphQL API - $response = Invoke-GitHubGraphQLQuery -Query $query -Variables $variables + $response = Invoke-GitHubGraphQLQuery -Query $query -Variables $variables -Context $Context # Extract team data $teams = $response.data.organization.teams