MCPcopy
hub / github.com/cli/cli / unpinIssue

Function unpinIssue

pkg/cmd/issue/unpin/unpin.go:116–134  ·  view source on GitHub ↗
(httpClient *http.Client, repo ghrepo.Interface, issue *api.Issue)

Source from the content-addressed store, hash-verified

114}
115
116func unpinIssue(httpClient *http.Client, repo ghrepo.Interface, issue *api.Issue) error {
117 var mutation struct {
118 UnpinIssue struct {
119 Issue struct {
120 ID githubv4.ID
121 }
122 } `graphql:"unpinIssue(input: $input)"`
123 }
124
125 variables := map[string]interface{}{
126 "input": githubv4.UnpinIssueInput{
127 IssueID: issue.ID,
128 },
129 }
130
131 gql := api.NewClientFromHTTP(httpClient)
132
133 return gql.Mutate(repo.RepoHost(), "IssueUnpin", &mutation, variables)
134}

Callers 1

unpinRunFunction · 0.85

Calls 3

NewClientFromHTTPFunction · 0.92
MutateMethod · 0.65
RepoHostMethod · 0.65

Tested by

no test coverage detected