RemoveBlockedBy removes a "blocked by" relationship between two issues.
(client *Client, hostname string, issueID string, blockingIssueID string)
| 613 | |
| 614 | // RemoveBlockedBy removes a "blocked by" relationship between two issues. |
| 615 | func 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. |
no test coverage detected