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

Function dependencyResult

pkg/github/issue_dependencies.go:177–196  ·  view source on GitHub ↗
(conn dependencyConnection)

Source from the content-addressed store, hash-verified

175}
176
177func 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.
199func GetIssueBlockedBy(ctx context.Context, client *githubv4.Client, owner, repo string, issueNumber int, pagination *GraphQLPaginationParams) (*mcp.CallToolResult, error) {

Callers 2

GetIssueBlockedByFunction · 0.85
GetIssueBlockingFunction · 0.85

Calls 1

MarshalledTextResultFunction · 0.85

Tested by

no test coverage detected