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

Function UpdatePullRequestBranch

api/queries_pr.go:744–754  ·  view source on GitHub ↗
(client *Client, repo ghrepo.Interface, params githubv4.UpdatePullRequestBranchInput)

Source from the content-addressed store, hash-verified

742}
743
744func UpdatePullRequestBranch(client *Client, repo ghrepo.Interface, params githubv4.UpdatePullRequestBranchInput) error {
745 var mutation struct {
746 UpdatePullRequestBranch struct {
747 PullRequest struct {
748 ID string
749 }
750 } `graphql:"updatePullRequestBranch(input: $input)"`
751 }
752 variables := map[string]any{"input": params}
753 return client.Mutate(repo.RepoHost(), "PullRequestUpdateBranch", &mutation, variables)
754}
755
756func isBlank(v any) bool {
757 switch vv := v.(type) {

Callers 1

updatePullRequestBranchFunction · 0.92

Calls 2

MutateMethod · 0.65
RepoHostMethod · 0.65

Tested by

no test coverage detected