(conn dependencyConnection)
| 175 | } |
| 176 | |
| 177 | func dependencyResult(conn dependencyConnection) *mcp.CallToolResult { |
| 178 | issues := make([]minimalDependencyIssue, 0, len(conn.Nodes)) |
| 179 | for _, node := range conn.Nodes { |
| 180 | issues = append(issues, minimalDependencyIssue{ |
| 181 | Number: int(node.Number), |
| 182 | Title: string(node.Title), |
| 183 | State: string(node.State), |
| 184 | URL: string(node.URL), |
| 185 | Repository: string(node.Repository.NameWithOwner), |
| 186 | }) |
| 187 | } |
| 188 | return MarshalledTextResult(map[string]any{ |
| 189 | "issues": issues, |
| 190 | "totalCount": int(conn.TotalCount), |
| 191 | "pageInfo": map[string]any{ |
| 192 | "hasNextPage": bool(conn.PageInfo.HasNextPage), |
| 193 | "endCursor": string(conn.PageInfo.EndCursor), |
| 194 | }, |
| 195 | }) |
| 196 | } |
| 197 | |
| 198 | // GetIssueBlockedBy lists the issues that block the given issue. |
| 199 | func GetIssueBlockedBy(ctx context.Context, client *githubv4.Client, owner, repo string, issueNumber int, pagination *GraphQLPaginationParams) (*mcp.CallToolResult, error) { |
no test coverage detected