| 778 | } |
| 779 | |
| 780 | func PullRequestReady(client *Client, repo ghrepo.Interface, pr *PullRequest) error { |
| 781 | var mutation struct { |
| 782 | MarkPullRequestReadyForReview struct { |
| 783 | PullRequest struct { |
| 784 | ID githubv4.ID |
| 785 | } |
| 786 | } `graphql:"markPullRequestReadyForReview(input: $input)"` |
| 787 | } |
| 788 | |
| 789 | variables := map[string]interface{}{ |
| 790 | "input": githubv4.MarkPullRequestReadyForReviewInput{ |
| 791 | PullRequestID: pr.ID, |
| 792 | }, |
| 793 | } |
| 794 | |
| 795 | return client.Mutate(repo.RepoHost(), "PullRequestReadyForReview", &mutation, variables) |
| 796 | } |
| 797 | |
| 798 | func PullRequestRevert(client *Client, repo ghrepo.Interface, params githubv4.RevertPullRequestInput) (*PullRequest, error) { |
| 799 | var mutation struct { |