(client *http.Client, repo ghrepo.Interface, prID string)
| 104 | } |
| 105 | |
| 106 | func disableAutoMerge(client *http.Client, repo ghrepo.Interface, prID string) error { |
| 107 | var mutation struct { |
| 108 | DisablePullRequestAutoMerge struct { |
| 109 | ClientMutationId string |
| 110 | } `graphql:"disablePullRequestAutoMerge(input: {pullRequestId: $prID})"` |
| 111 | } |
| 112 | |
| 113 | variables := map[string]any{ |
| 114 | "prID": githubv4.ID(prID), |
| 115 | } |
| 116 | |
| 117 | gql := api.NewClientFromHTTP(client) |
| 118 | return gql.Mutate(repo.RepoHost(), "PullRequestAutoMergeDisable", &mutation, variables) |
| 119 | } |
| 120 | |
| 121 | func getMergeText(client *http.Client, repo ghrepo.Interface, prID string, mergeMethod PullRequestMergeMethod) (string, string, error) { |
| 122 | var method githubv4.PullRequestMergeMethod |
no test coverage detected