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

Function PullRequestReopen

api/queries_pr.go:786–803  ·  view source on GitHub ↗
(httpClient *http.Client, repo ghrepo.Interface, prID string)

Source from the content-addressed store, hash-verified

784}
785
786func 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
805func PullRequestReady(client *Client, repo ghrepo.Interface, pr *PullRequest) error {
806 var mutation struct {

Callers 2

apiReopenFunction · 0.92
reopenRunFunction · 0.92

Calls 3

NewClientFromHTTPFunction · 0.85
MutateMethod · 0.65
RepoHostMethod · 0.65

Tested by

no test coverage detected