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

Function updatePullRequest

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

Source from the content-addressed store, hash-verified

195}
196
197func updatePullRequest(httpClient *http.Client, repo ghrepo.Interface, params githubv4.UpdatePullRequestInput) error {
198 var mutation struct {
199 UpdatePullRequest struct {
200 Typename string `graphql:"__typename"`
201 } `graphql:"updatePullRequest(input: $input)"`
202 }
203 variables := map[string]interface{}{"input": params}
204 gql := api.NewClientFromHTTP(httpClient)
205 err := gql.Mutate(repo.RepoHost(), "PullRequestUpdate", &mutation, variables)
206 return err
207}
208
209func ghIds(s *[]string) *[]githubv4.ID {
210 if s == nil {

Callers 1

replaceIssueFieldsFunction · 0.70

Calls 3

NewClientFromHTTPFunction · 0.92
MutateMethod · 0.65
RepoHostMethod · 0.65

Tested by

no test coverage detected