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

Function GetIssueBlockedBy

pkg/github/issue_dependencies.go:199–212  ·  view source on GitHub ↗

GetIssueBlockedBy lists the issues that block the given issue.

(ctx context.Context, client *githubv4.Client, owner, repo string, issueNumber int, pagination *GraphQLPaginationParams)

Source from the content-addressed store, hash-verified

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) {
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.
215func GetIssueBlocking(ctx context.Context, client *githubv4.Client, owner, repo string, issueNumber int, pagination *GraphQLPaginationParams) (*mcp.CallToolResult, error) {

Callers 1

IssueDependencyReadFunction · 0.85

Calls 2

dependencyQueryVarsFunction · 0.85
dependencyResultFunction · 0.85

Tested by

no test coverage detected