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

Method delete

acceptance/fixture_repository_test.go:77–85  ·  view source on GitHub ↗
(name string)

Source from the content-addressed store, hash-verified

75}
76
77func (c *liveFixtureRepositoryClient) delete(name string) error {
78 path := fmt.Sprintf("repos/%s/%s", url.PathEscape(c.org), url.PathEscape(name))
79 err := c.apiClient.Do(http.MethodDelete, path, nil, nil)
80 var httpErr *ghAPI.HTTPError
81 if errors.As(err, &httpErr) && httpErr.StatusCode == http.StatusNotFound {
82 return nil
83 }
84 return err
85}
86
87type roundTripperFunc func(*http.Request) (*http.Response, error)
88

Callers

nothing calls this directly

Calls 1

DoMethod · 0.65

Tested by

no test coverage detected