(client *Client, repo ghrepo.Interface, params githubv4.UpdatePullRequestBranchInput)
| 742 | } |
| 743 | |
| 744 | func 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 | |
| 756 | func isBlank(v any) bool { |
| 757 | switch vv := v.(type) { |
no test coverage detected