(httpClient *http.Client, repo ghrepo.Interface, params githubv4.UpdatePullRequestInput)
| 195 | } |
| 196 | |
| 197 | func 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 | |
| 209 | func ghIds(s *[]string) *[]githubv4.ID { |
| 210 | if s == nil { |
no test coverage detected