MCPcopy
hub / github.com/cli/cli / deleteLabel

Function deleteLabel

pkg/cmd/label/delete.go:95–100  ·  view source on GitHub ↗
(client *http.Client, repo ghrepo.Interface, name string)

Source from the content-addressed store, hash-verified

93}
94
95func 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}

Callers 1

deleteRunFunction · 0.85

Calls 5

NewClientFromHTTPFunction · 0.92
RepoOwnerMethod · 0.65
RepoNameMethod · 0.65
RESTMethod · 0.65
RepoHostMethod · 0.65

Tested by

no test coverage detected