-
Couldn't load subscription status.
- Fork 7.3k
Add ability to view comments with pr view
#2575
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
69a9a33 to
9f101ff
Compare
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.
This looks good! Thanks for getting it done so quickly.
Since comments are presented identically to those in issue view, for the sake of maintainability, I definitely say that both issue view and pr view should import a shared package that provides this functionality. That way, we can tweak comments rendering in a single location.
|
@mislav I made the requested changes, if you wouldn't mind taking another look 🙇 |
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.
Thank you! 🎉
|
I think that somewhere in this PR the newline at the end of the output of |
This PR implements the ability to view issue comments in
gh pr view. The PR is not actually as long as the line count suggests, it is mostly due to test fixtures. There were not any major design or technical choices here as most were discussed and decided upon in #2462. This is mostly just copying logic and functionality fromgh issue viewintogh pr view. There is quite a bit of duplicate comment viewing code fromgh issue view. It would be nice to come up with a pattern to share this code.cc #1009