You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Note the permissions field says "admin"=>true. But then
julia>delete_repo(frps[3]; auth=auth)
ERROR: Error found in GitHub reponse:
Status Code:403
Message: Must have admin rights to Repository.
Docs URL: https://docs.github.com/rest/reference/repos#delete-a-repository
Errors:
Stacktrace:
[1] error(::String, ::String, ::String, ::String, ::String) at ./error.jl:42
[2] handle_response_error(::HTTP.Messages.Response) at /home/tim/.julia/dev/GitHub/src/utils/requests.jl:177
[3] github_request(::GitHub.GitHubWebAPI, ::Function, ::String; auth::GitHub.OAuth2, handle_error::Bool, headers::Dict{Any,Any}, params::Dict{Any,Any}, allowredirects::Bool) at /home/tim/.julia/dev/GitHub/src/utils/requests.jl:68
[4] #gh_delete#7 at /home/tim/.julia/dev/GitHub/src/utils/requests.jl:75 [inlined]
[5] delete_repo(::GitHub.GitHubWebAPI, ::Repo; options::Base.Iterators.Pairs{Symbol,GitHub.OAuth2,Tuple{Symbol},NamedTuple{(:auth,),Tuple{GitHub.OAuth2}}}) at /home/tim/.julia/dev/GitHub/src/repositories/repositories.jl:65
[6] #delete_repo#67 at ./none:0 [inlined]
[7] top-level scope at REPL[12]:1
The text was updated successfully, but these errors were encountered:
I'm trying to do a mass deletion of old forks, and this package looks very useful. But I'm getting stuck here:
Note the permissions field says
"admin"=>true
. But thenThe text was updated successfully, but these errors were encountered: