(client *http.Client, repo ghrepo.Interface, name string)
| 94 | } |
| 95 | |
| 96 | func deleteLabel(client *http.Client, repo ghrepo.Interface, name string) error { |
| 97 | apiClient := api.NewClientFromHTTP(client) |
| 98 | path, err := safeurl.JoinPath("repos", repo.RepoOwner(), repo.RepoName(), "labels", name) |
| 99 | if err != nil { |
| 100 | return err |
| 101 | } |
| 102 | |
| 103 | return apiClient.REST(repo.RepoHost(), "DELETE", path.String(), nil, nil) |
| 104 | } |