(owner, repo string, issueNumber int, pagination *GraphQLPaginationParams)
| 160 | } |
| 161 | |
| 162 | func 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 | |
| 177 | func dependencyResult(conn dependencyConnection) *mcp.CallToolResult { |
| 178 | issues := make([]minimalDependencyIssue, 0, len(conn.Nodes)) |
no test coverage detected