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