(httpClient *http.Client, id string, repo ghrepo.Interface, labels []string)
| 167 | } |
| 168 | |
| 169 | func removeLabels(httpClient *http.Client, id string, repo ghrepo.Interface, labels []string) error { |
| 170 | params := githubv4.RemoveLabelsFromLabelableInput{ |
| 171 | LabelableID: id, |
| 172 | LabelIDs: *ghIds(&labels), |
| 173 | } |
| 174 | |
| 175 | var mutation struct { |
| 176 | RemoveLabelsFromLabelable struct { |
| 177 | Typename string `graphql:"__typename"` |
| 178 | } `graphql:"removeLabelsFromLabelable(input: $input)"` |
| 179 | } |
| 180 | |
| 181 | variables := map[string]interface{}{"input": params} |
| 182 | gql := api.NewClientFromHTTP(httpClient) |
| 183 | return gql.Mutate(repo.RepoHost(), "LabelRemove", &mutation, variables) |
| 184 | } |
| 185 | |
| 186 | func updateIssue(httpClient *http.Client, repo ghrepo.Interface, params githubv4.UpdateIssueInput) error { |
| 187 | var mutation struct { |
no test coverage detected