RemoveSubIssue removes a sub-issue from a parent issue.
(client *Client, hostname string, parentID string, subIssueID string)
| 563 | |
| 564 | // RemoveSubIssue removes a sub-issue from a parent issue. |
| 565 | func RemoveSubIssue(client *Client, hostname string, parentID string, subIssueID string) error { |
| 566 | type RemoveSubIssueInput struct { |
| 567 | IssueID githubv4.ID `json:"issueId"` |
| 568 | SubIssueID githubv4.ID `json:"subIssueId"` |
| 569 | } |
| 570 | |
| 571 | var mutation struct { |
| 572 | RemoveSubIssue struct { |
| 573 | Issue struct { |
| 574 | ID string |
| 575 | } |
| 576 | } `graphql:"removeSubIssue(input: $input)"` |
| 577 | } |
| 578 | |
| 579 | variables := map[string]any{ |
| 580 | "input": RemoveSubIssueInput{ |
| 581 | IssueID: githubv4.ID(parentID), |
| 582 | SubIssueID: githubv4.ID(subIssueID), |
| 583 | }, |
| 584 | } |
| 585 | |
| 586 | return client.Mutate(hostname, "RemoveSubIssue", &mutation, variables) |
| 587 | } |
| 588 | |
| 589 | // AddBlockedBy marks an issue as blocked by another issue. |
| 590 | func AddBlockedBy(client *Client, hostname string, issueID string, blockingIssueID string) error { |
no test coverage detected