Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Conversation

@samcoe
Copy link
Contributor

@samcoe samcoe commented Dec 8, 2020

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 from gh issue view into gh pr view. There is quite a bit of duplicate comment viewing code from gh issue view. It would be nice to come up with a pattern to share this code.

cc #1009

@samcoe samcoe self-assigned this Dec 8, 2020
@samcoe samcoe changed the base branch from trunk to view-comments December 8, 2020 19:01
@samcoe samcoe changed the title Pr view comments Add ability to view comments with pr view Dec 8, 2020
@samcoe samcoe marked this pull request as ready for review December 9, 2020 15:19
Copy link
Contributor

@mislav mislav left a 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.

@samcoe samcoe requested review from mislav and vilmibm December 9, 2020 19:57
@samcoe
Copy link
Contributor Author

samcoe commented Dec 10, 2020

@mislav I made the requested changes, if you wouldn't mind taking another look 🙇

Copy link
Contributor

@mislav mislav left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thank you! 🎉

@mislav mislav closed this Dec 15, 2020
@mislav mislav deleted the branch trunk December 15, 2020 15:22
@mislav mislav reopened this Dec 15, 2020
@mislav mislav changed the base branch from view-comments to trunk December 15, 2020 15:30
@mislav mislav merged commit a77f3dd into trunk Dec 15, 2020
@mislav mislav deleted the pr-view-comments branch December 15, 2020 15:31
@oorijsonar
Copy link

I think that somewhere in this PR the newline at the end of the output of gh issue view and gh pr view was removed.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants