-
Notifications
You must be signed in to change notification settings - Fork 20
Fetch files with Github API #173
Fetch files with Github API #173
Conversation
* add a custom hook for grabbing query parameters off the location object * use hook in preview page to grab and log out the 'pr' and 'quickstart' query parameters
* Ability to grab both the quickstart filepath and SHA from one fetch request
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.
Hey @josephgregoryii! I had one big comment on the recursive function, please let me know if that does/doesn't make any sense. The rest are just around finishing up the AC and some small naming comments!
* Added logic to handle redirecting a contributor to the homepage if query parameters are not set
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.
Saw one spot we should test out with path prefixes enabled!
* Moved helper functions to src/utils/helpers * Moved URL constants to src/data/
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.
I had a couple of questions / comments. This is looking great tho!!
* Removed try catch block to favor error stack in preview page
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.
Error handling looks good!
🎉 This PR is included in version 1.2.0 🎉 The release is available on GitHub release Your semantic-release bot 📦🚀 |
Summary