| 803 | } |
| 804 | |
| 805 | func PullRequestReady(client *Client, repo ghrepo.Interface, pr *PullRequest) error { |
| 806 | var mutation struct { |
| 807 | MarkPullRequestReadyForReview struct { |
| 808 | PullRequest struct { |
| 809 | ID githubv4.ID |
| 810 | } |
| 811 | } `graphql:"markPullRequestReadyForReview(input: $input)"` |
| 812 | } |
| 813 | |
| 814 | variables := map[string]any{ |
| 815 | "input": githubv4.MarkPullRequestReadyForReviewInput{ |
| 816 | PullRequestID: pr.ID, |
| 817 | }, |
| 818 | } |
| 819 | |
| 820 | return client.Mutate(repo.RepoHost(), "PullRequestReadyForReview", &mutation, variables) |
| 821 | } |
| 822 | |
| 823 | func PullRequestRevert(client *Client, repo ghrepo.Interface, params githubv4.RevertPullRequestInput) (*PullRequest, error) { |
| 824 | var mutation struct { |