(httpClient *http.Client, repo ghrepo.Interface, issueID string)
| 117 | } |
| 118 | |
| 119 | func apiDelete(httpClient *http.Client, repo ghrepo.Interface, issueID string) error { |
| 120 | var mutation struct { |
| 121 | DeleteIssue struct { |
| 122 | Repository struct { |
| 123 | ID githubv4.ID |
| 124 | } |
| 125 | } `graphql:"deleteIssue(input: $input)"` |
| 126 | } |
| 127 | |
| 128 | variables := map[string]interface{}{ |
| 129 | "input": githubv4.DeleteIssueInput{ |
| 130 | IssueID: issueID, |
| 131 | }, |
| 132 | } |
| 133 | |
| 134 | gql := api.NewClientFromHTTP(httpClient) |
| 135 | return gql.Mutate(repo.RepoHost(), "IssueDelete", &mutation, variables) |
| 136 | } |
no test coverage detected