-
-
Notifications
You must be signed in to change notification settings - Fork 24
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Comments posted on a pending review get extra quote wrapping #118
Comments
Not really obvious to me how this code ends up with that result: gh.nvim/lua/litee/gh/ghcli/init.lua Line 827 in cd79791
This didn't previously happen on a much earlier version of gh.nvim, so I'm not sure if this is related to my For reference:
|
For reference the input is already malformed before it gets into Enabled
Then submitted a new comment with the value
|
Oh that would do it: gh.nvim/lua/litee/gh/pr/thread_buffer.lua Line 95 in cd79791
|
I'm unable to look deeply at the moment, but might it be related to d6afb4f (the same commit you linked to in #117)? Seems like some gh commands were changed from strings (which included Edit: looks like you found it and replied while I was replying. |
@rmacklin ha, indeed it looks like we found it at the same time. I've posted a PR with the proposal. I didn't vet whether there are any other callers that might still need the escaping, so let me know if there's anything I missed there. Should fix it though. |
There may be similar extra escaping happening in the other
gh.nvim/lua/litee/gh/issues/issue_buffer.lua Line 424 in ebbaac2
and possibly in pull request review submission comments: gh.nvim/lua/litee/gh/pr/init.lua Line 725 in ebbaac2
gh.nvim/lua/litee/gh/pr/init.lua Line 768 in ebbaac2
but I'm unable to test currently. |
If you start a pending review, then use
GHCreateThread
and post a comment onto some code, the output in the target PR looks like:What I would expect to see is the verbatim comment:
The same issue also occurs when submitting a review with a top-level comment.
The text was updated successfully, but these errors were encountered: