Closed nkottary closed 1 year ago
Webui looks ok with this PR. Comment bot fails to create a PR, gives this error. Need to dig deeper to check why that happens.
┌ Info: Unexpected error: Error found in GitHub reponse:
│ Status Code: 422
│ Message: Validation Failed
│ Docs URL: https://docs.github.com/rest/reference/pulls#create-a-pull-request
│ Errors: Any[Dict{String, Any}("field" => "head", "code" => "invalid", "resource" => "PullRequest")]
│ Stacktrace:
│ [1] error(::String, ::String, ::String, ::String, ::String)
│ @ Base ./error.jl:42
│ [2] handle_response_error(r::HTTP.Messages.Response)
│ @ GitHub ~/.julia/packages/GitHub/Ij6eH/src/utils/requests.jl:177
│ [3] github_request(api::GitHub.GitHubWebAPI, request_method::Function, endpoint::String; auth::GitHub.OAuth2, handle_error::Bool, headers::Dict{Any, Any}, params::Dict{String, Any}, allowredirects::Bool)
│ @ GitHub ~/.julia/packages/GitHub/Ij6eH/src/utils/requests.jl:68
│ [4] #gh_post#5
│ @ ~/.julia/packages/GitHub/Ij6eH/src/utils/requests.jl:73 [inlined]
│ [5] gh_post_json(api::GitHub.GitHubWebAPI, endpoint::String; options::Base.Iterators.Pairs{Symbol, Any, Tuple{Symbol, Symbol}, NamedTuple{(:auth, :params), Tuple{GitHub.OAuth2, Dict{String, Any}}}})
│ @ GitHub ~/.julia/packages/GitHub/Ij6eH/src/utils/requests.jl:79
│ [6] create_pull_request(api::GitHub.GitHubWebAPI, repo::String; options::Base.Iterators.Pairs{Symbol, Any, Tuple{Symbol, Symbol}, NamedTuple{(:auth, :params), Tuple{GitHub.OAuth2, Dict{String, Any}}}})
│ @ GitHub ~/.julia/packages/GitHub/Ij6eH/src/issues/pull_requests.jl:90
│ [7] #create_pull_request#176
│ @ ./none:0 [inlined]
│ [8] create_or_find_pull_request(repo::String, params::Dict{String, Any}, rbrn::RegistryTools.RegBranch)
│ @ Registrator.CommentBot ~/Registrator.jl/src/commentbot/github_utils.jl:226
│ [9] make_pull_request(pp::Registrator.CommentBot.ProcessedParams, rp::Registrator.CommentBot.RequestParams{Registrator.CommentBot.CommitCommentTrigger}, rbrn::RegistryTools.RegBranch, target_registry::Dict{String, Any})
│ @ Registrator.CommentBot ~/Registrator.jl/src/commentbot/CommentBot.jl:99
│ [10] action(rp::Registrator.CommentBot.RequestParams{Registrator.CommentBot.CommitCommentTrigger}, zsock::Registrator.Messaging.RequestSocket)
│ @ Registrator.CommentBot ~/Registrator.jl/src/commentbot/CommentBot.jl:173
│ [11] (::Registrator.CommentBot.var"#do_action#26"{Registrator.Messaging.RequestSocket})()
│ @ Registrator.CommentBot ~/Registrator.jl/src/commentbot/CommentBot.jl:240
│ [12] recover(name::String, keep_running::Registrator.CommentBot.var"#keep_running#28", do_action::Registrator.CommentBot.var"#do_action#26"{Registrator.Messaging.RequestSocket}, handle_exception::Registrator.CommentBot.var"#handle_exception#27"; backoff::Int64, backoffmax::Int64, backoffincrement::Int64)
│ @ Registrator.CommentBot ~/Registrator.jl/src/management.jl:59
│ [13] recover
│ @ ~/Registrator.jl/src/management.jl:57 [inlined]
│ [14] request_processor
│ @ ~/Registrator.jl/src/commentbot/CommentBot.jl:243 [inlined]
│ [15] (::Registrator.CommentBot.var"#30#32"{Registrator.Messaging.RequestSocket})()
│ @ Registrator.CommentBot ./task.jl:411
└ @ Registrator.CommentBot /home/ubuntu/Registrator.jl/src/commentbot/CommentBot.jl:187
Ok, that was due to a miconfiguration.
mention
in comment bot