(httpClient *http.Client, repo ghrepo.Interface, params githubv4.UpdateIssueInput)
| 184 | } |
| 185 | |
| 186 | func 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 | |
| 197 | func updatePullRequest(httpClient *http.Client, repo ghrepo.Interface, params githubv4.UpdatePullRequestInput) error { |
| 198 | var mutation struct { |
no test coverage detected