MCPcopy Create free account
hub / github.com/cli/cli / RemoveSubIssue

Function RemoveSubIssue

api/queries_issue.go:565–587  ·  view source on GitHub ↗

RemoveSubIssue removes a sub-issue from a parent issue.

(client *Client, hostname string, parentID string, subIssueID string)

Source from the content-addressed store, hash-verified

563
564// RemoveSubIssue removes a sub-issue from a parent issue.
565func 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.
590func AddBlockedBy(client *Client, hostname string, issueID string, blockingIssueID string) error {

Callers 1

DeferredUpdateIssueFunction · 0.85

Calls 2

IDMethod · 0.65
MutateMethod · 0.65

Tested by

no test coverage detected