MCPcopy Create free account
hub / github.com/github/gh-aw / hasGitHubTool

Function hasGitHubTool

pkg/workflow/mcp_github_config.go:78–83  ·  view source on GitHub ↗

hasGitHubTool checks if the GitHub tool is configured (using ParsedTools)

(parsedTools *Tools)

Source from the content-addressed store, hash-verified

76
77// hasGitHubTool checks if the GitHub tool is configured (using ParsedTools)
78func hasGitHubTool(parsedTools *Tools) bool {
79 if parsedTools == nil {
80 return false
81 }
82 return parsedTools.GitHub != nil
83}
84
85// hasGitHubApp checks if a GitHub App is configured in the (merged) GitHub tool configuration
86func hasGitHubApp(githubTool map[string]any) bool {

Calls

no outgoing calls

Tested by

no test coverage detected