(httpClient *http.Client, repo ghrepo.Interface, issue *api.Issue)
| 114 | } |
| 115 | |
| 116 | func unpinIssue(httpClient *http.Client, repo ghrepo.Interface, issue *api.Issue) error { |
| 117 | var mutation struct { |
| 118 | UnpinIssue struct { |
| 119 | Issue struct { |
| 120 | ID githubv4.ID |
| 121 | } |
| 122 | } `graphql:"unpinIssue(input: $input)"` |
| 123 | } |
| 124 | |
| 125 | variables := map[string]interface{}{ |
| 126 | "input": githubv4.UnpinIssueInput{ |
| 127 | IssueID: issue.ID, |
| 128 | }, |
| 129 | } |
| 130 | |
| 131 | gql := api.NewClientFromHTTP(httpClient) |
| 132 | |
| 133 | return gql.Mutate(repo.RepoHost(), "IssueUnpin", &mutation, variables) |
| 134 | } |
no test coverage detected