MCPcopy Create free account
hub / github.com/cli/cli / RemoveBlockedBy

Function RemoveBlockedBy

api/queries_issue.go:615–637  ·  view source on GitHub ↗

RemoveBlockedBy removes a "blocked by" relationship between two issues.

(client *Client, hostname string, issueID string, blockingIssueID string)

Source from the content-addressed store, hash-verified

613
614// RemoveBlockedBy removes a "blocked by" relationship between two issues.
615func RemoveBlockedBy(client *Client, hostname string, issueID string, blockingIssueID string) error {
616 type RemoveBlockedByInput struct {
617 IssueID githubv4.ID `json:"issueId"`
618 BlockingIssueID githubv4.ID `json:"blockingIssueId"`
619 }
620
621 var mutation struct {
622 RemoveBlockedBy struct {
623 Issue struct {
624 ID string
625 }
626 } `graphql:"removeBlockedBy(input: $input)"`
627 }
628
629 variables := map[string]any{
630 "input": RemoveBlockedByInput{
631 IssueID: githubv4.ID(issueID),
632 BlockingIssueID: githubv4.ID(blockingIssueID),
633 },
634 }
635
636 return client.Mutate(hostname, "RemoveBlockedBy", &mutation, variables)
637}
638
639// DeferredUpdateIssueOptions updates an issue with mutations unsupported by the
640// standard issue update mutations. All ID fields are node IDs.

Callers 1

DeferredUpdateIssueFunction · 0.85

Calls 2

IDMethod · 0.65
MutateMethod · 0.65

Tested by

no test coverage detected