Validation failed error when creating review thread comment
HampusMat opened this issue · comments
Issue Description
Type: bug report or feature request
bug report
Describe what happened (or what feature you want)
When trying to create a comment in a review thread in a pull request, the following error is displayed:
gh: Validation Failed (HTTP 422)
Describe what you expected to happen
I expected a comment to be created in a review thread.
How to reproduce it (as minimally and precisely as possible)
- Enter a pull request that has a review with one or more comments
- Move your cursor to the line below a review thread
THREAD
header. - Do
:Octo comment add
(or space + ca) - Write a comment
- Do
:w
to save.
Tell us your environment
Neovim v0.9.
LuaJIT 2.1.0-beta3
Fedora Linux 37
Github CLI 2.30.0
Anything else we need to know?
I'm unable to reproduce this at home. Really weird
Will leave this open to see if anyone has the same problem. Seems like its related with gh
config rather than Octo though
Same problem on my end
What I noticed is that from the PR overview, when I try to add a comment to a thread, it tries to add a COMMENT
When going to the thread via the review page, it properly adds a THREAD COMMENT
and gh
won't complain
So basically, cannot answer a thread without re-doing a review and submitting it :/
Had this problem, and this is what I found: If you have a review
in progress, you can only comment
on the thread via the review page. If you try to comment in the PR view, it gets gh: Validation Failed (HTTP 422)
. You need to discard
your review to comment via the PR page.