X Tutup
Skip to content

Commit 0341990

Browse files
author
Nate Smith
authored
Merge pull request cli#4566 from cli/delete-scope
Declare that the delete repo endpoint needs `delete_repo` scope
2 parents d84a7c7 + b9c26df commit 0341990

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

pkg/cmd/repo/delete/http.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@ func deleteRepo(client *http.Client, repo ghrepo.Interface) error {
2626
defer resp.Body.Close()
2727

2828
if resp.StatusCode > 299 {
29-
return api.HandleHTTPError(resp)
29+
return api.HandleHTTPError(api.EndpointNeedsScopes(resp, "delete_repo"))
3030
}
3131

3232
return nil

0 commit comments

Comments
 (0)
X Tutup