MCPcopy Index your code
hub / github.com/cli/cli / RemoveSubIssue

Function RemoveSubIssue

api/queries_issue.go:544–566  ·  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

542
543// RemoveSubIssue removes a sub-issue from a parent issue.
544func 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.
569func 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