-
Notifications
You must be signed in to change notification settings - Fork 3.6k
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
update extension GitHub Profile #17906
Conversation
Thank you for the update! 🎉 Due to our current reduced availability, the initial review may take up to 10-15 business days |
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.
PR Summary
This PR updates the GitHub Profile extension to better handle cases where users haven't provided a GitHub token, adding mock data alerts and improving error handling.
- Inconsistency in
/extensions/github-profile/README.md
: States token is required but code works without it - documentation should be updated to reflect actual behavior - Added warning toast in
/extensions/github-profile/src/api/github.ts
when using mock contribution data - REST API endpoints (profile and repos) already work without token despite roadmap item suggesting otherwise
- Consider removing "token required" warning from README since it's now optional
- GraphQL error handling in
fetchContributionData()
could be more specific about failure reasons
3 file(s) reviewed, no comment(s)
Edit PR Review Bot Settings | Greptile
Hi @ridemountainpig , what do you think? :) |
As in the description, now let's require users to input a token as a safe choice. |
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.
Looks good to me.
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.
Hi 👋
Looks good to me, approved 🔥
Published to the Raycast Store: |
🎉 🎉 🎉 We've rewarded your Raycast account with some credits. You will soon be able to exchange them for some swag. |
Description
fix issue #17904
TLDR: we don't force users to provide a token but show the alerts when mock data is returned, as a fix.Since REST API can be used to fetch even without a token, which has not been implemented yet.
Now we change GitHub token to required field, as a safe choice.
Screencast
Checklist
npm run build
and tested this distribution build in Raycastassets
folder are used by the extension itselfREADME
are located outside the metadata folder if they were not generated with our metadata tool