MCPcopy Create free account
hub / github.com/cli/cli / deleteRelease

Function deleteRelease

pkg/cmd/release/delete/delete.go:124–129  ·  view source on GitHub ↗
(httpClient *http.Client, host string, releaseURL safeurl.SafeURL)

Source from the content-addressed store, hash-verified

122}
123
124func deleteRelease(httpClient *http.Client, host string, releaseURL safeurl.SafeURL) error {
125 // TODO(api-client-rollout)
126 // This line of code is part of a mechanical roll out of the api client.
127 // As a follow up, consider whether the api client can be injected to this call site, rather than constructed
128 return api.NewClientFromHTTP(httpClient).REST(host, http.MethodDelete, releaseURL.String(), nil, nil)
129}
130
131func deleteTag(httpClient *http.Client, baseRepo ghrepo.Interface, tagName string) error {
132 path, err := safeurl.JoinPath("repos", baseRepo.RepoOwner(), baseRepo.RepoName(), "git", "refs", fmt.Sprintf("tags/%s", tagName))

Callers 2

deleteRunFunction · 0.70

Calls 3

NewClientFromHTTPFunction · 0.92
RESTMethod · 0.65
StringMethod · 0.65

Tested by 1