Declare that the delete repo endpoint needs delete_repo scope
The API endpoint doesn't declare this in its `X-Accepted-Oauth-Scopes` response header.
This commit is contained in:
parent
d84a7c7fa7
commit
b9c26dfba3
1 changed files with 1 additions and 1 deletions
|
|
@ -26,7 +26,7 @@ func deleteRepo(client *http.Client, repo ghrepo.Interface) error {
|
|||
defer resp.Body.Close()
|
||||
|
||||
if resp.StatusCode > 299 {
|
||||
return api.HandleHTTPError(resp)
|
||||
return api.HandleHTTPError(api.EndpointNeedsScopes(resp, "delete_repo"))
|
||||
}
|
||||
|
||||
return nil
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue