RemoveSubIssue removes a sub-issue from a parent issue.
(client *Client, hostname string, parentID string, subIssueID string)
| 542 | |
| 543 | // RemoveSubIssue removes a sub-issue from a parent issue. |
| 544 | func RemoveSubIssue(client *Client, hostname string, parentID string, subIssueID string) error { |
| 545 | type RemoveSubIssueInput struct { |
| 546 | IssueID githubv4.ID `json:"issueId"` |
| 547 | SubIssueID githubv4.ID `json:"subIssueId"` |
| 548 | } |
| 549 | |
| 550 | var mutation struct { |
| 551 | RemoveSubIssue struct { |
| 552 | Issue struct { |
| 553 | ID string |
| 554 | } |
| 555 | } `graphql:"removeSubIssue(input: $input)"` |
| 556 | } |
| 557 | |
| 558 | variables := map[string]interface{}{ |
| 559 | "input": RemoveSubIssueInput{ |
| 560 | IssueID: githubv4.ID(parentID), |
| 561 | SubIssueID: githubv4.ID(subIssueID), |
| 562 | }, |
| 563 | } |
| 564 | |
| 565 | return client.Mutate(hostname, "RemoveSubIssue", &mutation, variables) |
| 566 | } |
| 567 | |
| 568 | // AddBlockedBy marks an issue as blocked by another issue. |
| 569 | func AddBlockedBy(client *Client, hostname string, issueID string, blockingIssueID string) error { |
no test coverage detected