(client *http.Client, repo ghrepo.Interface, name string)
| 93 | } |
| 94 | |
| 95 | func deleteLabel(client *http.Client, repo ghrepo.Interface, name string) error { |
| 96 | apiClient := api.NewClientFromHTTP(client) |
| 97 | path := fmt.Sprintf("repos/%s/%s/labels/%s", repo.RepoOwner(), repo.RepoName(), name) |
| 98 | |
| 99 | return apiClient.REST(repo.RepoHost(), "DELETE", path, nil, nil) |
| 100 | } |