MCPcopy Index your code
hub / github.com/cli/cli / RemoveBlockedBy

Function RemoveBlockedBy

api/queries_issue.go:594–616  ·  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

592
593// RemoveBlockedBy removes a "blocked by" relationship between two issues.
594func RemoveBlockedBy(client *Client, hostname string, issueID string, blockingIssueID string) error {
595 type RemoveBlockedByInput struct {
596 IssueID githubv4.ID `json:"issueId"`
597 BlockingIssueID githubv4.ID `json:"blockingIssueId"`
598 }
599
600 var mutation struct {
601 RemoveBlockedBy struct {
602 Issue struct {
603 ID string
604 }
605 } `graphql:"removeBlockedBy(input: $input)"`
606 }
607
608 variables := map[string]interface{}{
609 "input": RemoveBlockedByInput{
610 IssueID: githubv4.ID(issueID),
611 BlockingIssueID: githubv4.ID(blockingIssueID),
612 },
613 }
614
615 return client.Mutate(hostname, "RemoveBlockedBy", &mutation, variables)
616}
617
618// DeferredUpdateIssueOptions updates an issue with mutations unsupported by the
619// 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