GetIssueBlockedBy lists the issues that block the given issue.
(ctx context.Context, client *githubv4.Client, owner, repo string, issueNumber int, pagination *GraphQLPaginationParams)
| 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) { |
| 200 | var query struct { |
| 201 | Repository struct { |
| 202 | Issue struct { |
| 203 | BlockedBy dependencyConnection `graphql:"blockedBy(first: $first, after: $after)"` |
| 204 | } `graphql:"issue(number: $issueNumber)"` |
| 205 | } `graphql:"repository(owner: $owner, name: $repo)"` |
| 206 | } |
| 207 | |
| 208 | if err := client.Query(ctx, &query, dependencyQueryVars(owner, repo, issueNumber, pagination)); err != nil { |
| 209 | return ghErrors.NewGitHubGraphQLErrorResponse(ctx, "failed to get blocked-by issues", err), nil |
| 210 | } |
| 211 | return dependencyResult(query.Repository.Issue.BlockedBy), nil |
| 212 | } |
| 213 | |
| 214 | // GetIssueBlocking lists the issues that the given issue blocks. |
| 215 | func GetIssueBlocking(ctx context.Context, client *githubv4.Client, owner, repo string, issueNumber int, pagination *GraphQLPaginationParams) (*mcp.CallToolResult, error) { |
no test coverage detected