-
Notifications
You must be signed in to change notification settings - Fork 24
[hacky version] View existing comments in code lines #79
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
Conversation
|
Seems like using |
|
Code looks good, could you place it behind a flag opt-in? This way we can get a few people to test it before it ships by default. |
I added the flag There a few changes here and there that I don't think needs to be gated e.g. including reviews in graphql query because this is ignored by the rest of the code. But if you feel safer including the new query behind the flag let me know. |
|
Let's put the different query behind a flag too, otherwise the change has a potential performance implication (time to fetch comments) even when you opt out. |
|
Also for the help message let's make explicit what users should set. See the code I removed in pull request 59 for an example. The rest looks good to me! Almost ready to ship. Thanks for this work. |
|
Updated, let me know wdyt. |
|
Please add one test and look into the comment I left, almost good to go! Thank again for your work. |
|
Updated, I completely unnoticed the existing tests, sorry. The code now is passing all tests and includes one to validate this feature minimally. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
[testing, sorry.. wrong pr-id]
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
[testing, sorry.. wrong pr-id]
|
Are you ready to merge this PR? |
Yes, this is ok from my point of view. The comments above were some tests that I used this PR number instead of another one by mistake, disconsider please :) |
|
Looks like the CI is not set properly (my bad) and cannot run the test suite on the PR. As I want to make sure nothing breaks, I will run the tests manually. Alternatively you can send a screenshot of them passing. Then let's merge it! We should also add a contributor section in the readme if you want to add your name. |
|
No worries, tbh while I was working on c9d5382 I noticed some things that can be improved in this PR too. Do you know exactly how is the relationship between |
|
@charignon I think now we are good to go, but let me explain what are the last changes in the codebase: i) I was under the impression that ii) The Github API has a notion for iii) In some situations a comment can become |
|
Ok thanks for the explanation and screenshot. When you are good to go I will merge it. Let me know |
Guarded behind a flag makes it a lot more comfortable to ship :) thanks for such nice practice. You can merge it. |

Hello, first of all great package! I came to know this work and I loved it.
I worked in a hacky version to show comments from code lines as described in #5 . Some screenshots from #63 :
and

There are some assumptions here like the ordering of reviews in the github graphql api, all my tests seems to indicate that reviews appear ordered from smaller to higher line numbers.
I am willing to change this code to make it more suitable to the oficial repo. Some guidance is very welcome 👍
Thanks again for your work o/