(client *Client, repo ghrepo.Interface, branch string)
| 870 | } |
| 871 | |
| 872 | func BranchDeleteRemote(client *Client, repo ghrepo.Interface, branch string) error { |
| 873 | path, err := safeurl.JoinPath("repos", repo.RepoOwner(), repo.RepoName(), "git", "refs", fmt.Sprintf("heads/%s", branch)) |
| 874 | if err != nil { |
| 875 | return err |
| 876 | } |
| 877 | return client.REST(repo.RepoHost(), "DELETE", path.String(), nil, nil) |
| 878 | } |
| 879 | |
| 880 | type RefComparison struct { |
| 881 | AheadBy int |