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

Function dependencyQueryVars

pkg/github/issue_dependencies.go:162–175  ·  view source on GitHub ↗
(owner, repo string, issueNumber int, pagination *GraphQLPaginationParams)

Source from the content-addressed store, hash-verified

160}
161
162func dependencyQueryVars(owner, repo string, issueNumber int, pagination *GraphQLPaginationParams) map[string]any {
163 vars := map[string]any{
164 "owner": githubv4.String(owner),
165 "repo": githubv4.String(repo),
166 "issueNumber": githubv4.Int(issueNumber), // #nosec G115 - issue numbers are always small positive integers
167 "first": githubv4.Int(*pagination.First),
168 }
169 if pagination.After != nil {
170 vars["after"] = githubv4.String(*pagination.After)
171 } else {
172 vars["after"] = (*githubv4.String)(nil)
173 }
174 return vars
175}
176
177func dependencyResult(conn dependencyConnection) *mcp.CallToolResult {
178 issues := make([]minimalDependencyIssue, 0, len(conn.Nodes))

Callers 2

GetIssueBlockedByFunction · 0.85
GetIssueBlockingFunction · 0.85

Calls 1

StringMethod · 0.45

Tested by

no test coverage detected