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

Function updateIssue

pkg/cmd/pr/shared/editable_http.go:186–195  ·  view source on GitHub ↗
(httpClient *http.Client, repo ghrepo.Interface, params githubv4.UpdateIssueInput)

Source from the content-addressed store, hash-verified

184}
185
186func updateIssue(httpClient *http.Client, repo ghrepo.Interface, params githubv4.UpdateIssueInput) error {
187 var mutation struct {
188 UpdateIssue struct {
189 Typename string `graphql:"__typename"`
190 } `graphql:"updateIssue(input: $input)"`
191 }
192 variables := map[string]interface{}{"input": params}
193 gql := api.NewClientFromHTTP(httpClient)
194 return gql.Mutate(repo.RepoHost(), "IssueUpdate", &mutation, variables)
195}
196
197func updatePullRequest(httpClient *http.Client, repo ghrepo.Interface, params githubv4.UpdatePullRequestInput) error {
198 var mutation struct {

Callers 1

replaceIssueFieldsFunction · 0.85

Calls 3

NewClientFromHTTPFunction · 0.92
MutateMethod · 0.65
RepoHostMethod · 0.65

Tested by

no test coverage detected