(client *Client, repo ghrepo.Interface, branch string)
| 845 | } |
| 846 | |
| 847 | func BranchDeleteRemote(client *Client, repo ghrepo.Interface, branch string) error { |
| 848 | path := fmt.Sprintf("repos/%s/%s/git/refs/heads/%s", repo.RepoOwner(), repo.RepoName(), url.PathEscape(branch)) |
| 849 | return client.REST(repo.RepoHost(), "DELETE", path, nil, nil) |
| 850 | } |
| 851 | |
| 852 | type RefComparison struct { |
| 853 | AheadBy int |