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