We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
2 parents d84a7c7 + b9c26df commit 0341990Copy full SHA for 0341990
pkg/cmd/repo/delete/http.go
@@ -26,7 +26,7 @@ func deleteRepo(client *http.Client, repo ghrepo.Interface) error {
26
defer resp.Body.Close()
27
28
if resp.StatusCode > 299 {
29
- return api.HandleHTTPError(resp)
+ return api.HandleHTTPError(api.EndpointNeedsScopes(resp, "delete_repo"))
30
}
31
32
return nil
0 commit comments