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

Function deleteRelease

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

Source from the content-addressed store, hash-verified

207}
208
209func deleteRelease(httpClient *http.Client, host string, releaseURL safeurl.SafeURL) error {
210 // TODO(api-client-rollout)
211 // This line of code is part of a mechanical roll out of the api client.
212 // As a follow up, consider whether the api client can be injected to this call site, rather than constructed
213 return api.NewClientFromHTTP(httpClient).REST(host, http.MethodDelete, releaseURL.String(), nil, nil)
214}
215
216// tokenHasWorkflowScope checks if the response token has the workflow scope.
217// Tokens that do not have OAuth scopes are assumed to have the workflow scope.

Callers 2

createRunFunction · 0.70

Calls 3

NewClientFromHTTPFunction · 0.92
RESTMethod · 0.65
StringMethod · 0.65

Tested by 1