Skip to content

Commit 1c9d77b

Browse files
Export WithGraphQLFeatures function for remote server use
Co-authored-by: SamMorrowDrums <4811358+SamMorrowDrums@users.noreply.github.com>
1 parent 3126532 commit 1c9d77b

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

pkg/github/issues.go

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1789,7 +1789,7 @@ func AssignCopilotToIssue(t translations.TranslationHelperFunc) inventory.Server
17891789

17901790
// Add the GraphQL-Features header for the agent assignment API
17911791
// The header will be read by the HTTP transport if it's configured to do so
1792-
ctxWithFeatures := withGraphQLFeatures(ctx, "issues_copilot_assignment_api_support")
1792+
ctxWithFeatures := WithGraphQLFeatures(ctx, "issues_copilot_assignment_api_support")
17931793

17941794
if err := client.Mutate(
17951795
ctxWithFeatures,
@@ -1917,8 +1917,8 @@ func AssignCodingAgentPrompt(t translations.TranslationHelperFunc) inventory.Ser
19171917
// graphQLFeaturesKey is a context key for GraphQL feature flags
19181918
type graphQLFeaturesKey struct{}
19191919

1920-
// withGraphQLFeatures adds GraphQL feature flags to the context
1921-
func withGraphQLFeatures(ctx context.Context, features ...string) context.Context {
1920+
// WithGraphQLFeatures adds GraphQL feature flags to the context
1921+
func WithGraphQLFeatures(ctx context.Context, features ...string) context.Context {
19221922
return context.WithValue(ctx, graphQLFeaturesKey{}, features)
19231923
}
19241924

0 commit comments

Comments
 (0)