-
Notifications
You must be signed in to change notification settings - Fork 189
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
Fix #2361: Extract unique github urls from each post #2363
Fix #2361: Extract unique github urls from each post #2363
Conversation
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.
Nice!
I left a few comments, but I think it's almost there 👍
6087948
to
5bb609b
Compare
5bb609b
to
1d0d1e7
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.
👍
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. A few questions:
- what about splitting these up into repos, issues, prs?
- should we move this into a hook,
const { repos, issues, prs } = useGitHubUrls(post.html)
? That way we can manage any changes to thepost
andpost.html
and (re)create these. - this seems pretty testable. Should we add some?
All of this could happen in follow-up PRs by you or other people, or we could do it here. Let me know how you want to proceed.
As they are all relevant to this function, I can add more commits to this PR. |
Alright, that's fine.
OK
Our front-end tests are very basic at the moment. We only have a few snapshot tests for a couple of components. Let's try to get more in when @menghif's work gets added. |
Issue This PR Addresses
Fix #2361
Type of Change
Description
Add a function to extract all the unique Github links from each post.
Test plan
Checklist