(httpClient *http.Client, repo ghrepo.Interface, prID string)
| 784 | } |
| 785 | |
| 786 | func PullRequestReopen(httpClient *http.Client, repo ghrepo.Interface, prID string) error { |
| 787 | var mutation struct { |
| 788 | ReopenPullRequest struct { |
| 789 | PullRequest struct { |
| 790 | ID githubv4.ID |
| 791 | } |
| 792 | } `graphql:"reopenPullRequest(input: $input)"` |
| 793 | } |
| 794 | |
| 795 | variables := map[string]any{ |
| 796 | "input": githubv4.ReopenPullRequestInput{ |
| 797 | PullRequestID: prID, |
| 798 | }, |
| 799 | } |
| 800 | |
| 801 | client := NewClientFromHTTP(httpClient) |
| 802 | return client.Mutate(repo.RepoHost(), "PullRequestReopen", &mutation, variables) |
| 803 | } |
| 804 | |
| 805 | func PullRequestReady(client *Client, repo ghrepo.Interface, pr *PullRequest) error { |
| 806 | var mutation struct { |
no test coverage detected