(httpClient *http.Client, repo ghrepo.Interface, prID string)
| 759 | } |
| 760 | |
| 761 | func PullRequestReopen(httpClient *http.Client, repo ghrepo.Interface, prID string) error { |
| 762 | var mutation struct { |
| 763 | ReopenPullRequest struct { |
| 764 | PullRequest struct { |
| 765 | ID githubv4.ID |
| 766 | } |
| 767 | } `graphql:"reopenPullRequest(input: $input)"` |
| 768 | } |
| 769 | |
| 770 | variables := map[string]interface{}{ |
| 771 | "input": githubv4.ReopenPullRequestInput{ |
| 772 | PullRequestID: prID, |
| 773 | }, |
| 774 | } |
| 775 | |
| 776 | client := NewClientFromHTTP(httpClient) |
| 777 | return client.Mutate(repo.RepoHost(), "PullRequestReopen", &mutation, variables) |
| 778 | } |
| 779 | |
| 780 | func PullRequestReady(client *Client, repo ghrepo.Interface, pr *PullRequest) error { |
| 781 | var mutation struct { |
no test coverage detected