MCPcopy Create free account
hub / github.com/cli/cli / PullRequestReady

Function PullRequestReady

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

Source from the content-addressed store, hash-verified

803}
804
805func 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
823func PullRequestRevert(client *Client, repo ghrepo.Interface, params githubv4.RevertPullRequestInput) (*PullRequest, error) {
824 var mutation struct {

Callers 1

readyRunFunction · 0.92

Calls 2

MutateMethod · 0.65
RepoHostMethod · 0.65

Tested by

no test coverage detected