MCPcopy Index your code
hub / github.com/github/github-mcp-server / ContextWithPollConfig

Function ContextWithPollConfig

pkg/github/copilot.go:76–78  ·  view source on GitHub ↗

ContextWithPollConfig returns a context with polling configuration. Use this in tests to reduce or disable polling.

(ctx context.Context, config PollConfig)

Source from the content-addressed store, hash-verified

74// ContextWithPollConfig returns a context with polling configuration.
75// Use this in tests to reduce or disable polling.
76func ContextWithPollConfig(ctx context.Context, config PollConfig) context.Context {
77 return context.WithValue(ctx, pollConfigKey{}, config)
78}
79
80// getPollConfig returns the polling configuration from context, or defaults.
81func getPollConfig(ctx context.Context) PollConfig {

Callers 1

TestAssignCopilotToIssueFunction · 0.85

Calls

no outgoing calls

Tested by 1

TestAssignCopilotToIssueFunction · 0.68