MCPcopy Index your code
hub / github.com/cli/cli / PullRequestReady

Function PullRequestReady

api/queries_pr.go:780–796  ·  view source on GitHub ↗
(client *Client, repo ghrepo.Interface, pr *PullRequest)

Source from the content-addressed store, hash-verified

778}
779
780func 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
798func PullRequestRevert(client *Client, repo ghrepo.Interface, params githubv4.RevertPullRequestInput) (*PullRequest, error) {
799 var mutation struct {

Callers 1

readyRunFunction · 0.92

Calls 2

MutateMethod · 0.65
RepoHostMethod · 0.65

Tested by

no test coverage detected