(client *api.Client, repo ghrepo.Interface, branch string)
| 24 | } |
| 25 | |
| 26 | func latestCommit(client *api.Client, repo ghrepo.Interface, branch string) (commit, error) { |
| 27 | var response commit |
| 28 | path := fmt.Sprintf("repos/%s/%s/git/refs/heads/%s", repo.RepoOwner(), repo.RepoName(), branch) |
| 29 | err := client.REST(repo.RepoHost(), "GET", path, nil, &response) |
| 30 | return response, err |
| 31 | } |
| 32 | |
| 33 | type upstreamMergeErr struct{ error } |
| 34 |
no test coverage detected