MCPcopy
hub / github.com/cli/cli / PullRequestReopen

Function PullRequestReopen

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

Source from the content-addressed store, hash-verified

759}
760
761func PullRequestReopen(httpClient *http.Client, repo ghrepo.Interface, prID string) error {
762 var mutation struct {
763 ReopenPullRequest struct {
764 PullRequest struct {
765 ID githubv4.ID
766 }
767 } `graphql:"reopenPullRequest(input: $input)"`
768 }
769
770 variables := map[string]interface{}{
771 "input": githubv4.ReopenPullRequestInput{
772 PullRequestID: prID,
773 },
774 }
775
776 client := NewClientFromHTTP(httpClient)
777 return client.Mutate(repo.RepoHost(), "PullRequestReopen", &mutation, variables)
778}
779
780func PullRequestReady(client *Client, repo ghrepo.Interface, pr *PullRequest) error {
781 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