Skip to content
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

Merged
merged 3 commits into from
Mar 17, 2025
Merged

Conversation

ViGeng
Copy link
Contributor

@ViGeng ViGeng commented Mar 16, 2025

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

image

Checklist

@raycastbot raycastbot added extension fix / improvement Label for PRs with extension's fix improvements extension: github-profile Issues related to the github-profile extension OP is author The OP of the PR is the author of the extension labels Mar 16, 2025
@raycastbot
Copy link
Collaborator

Thank you for the update! 🎉

Due to our current reduced availability, the initial review may take up to 10-15 business days

Copy link
Contributor

@greptile-apps greptile-apps bot left a 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

@ViGeng
Copy link
Contributor Author

ViGeng commented Mar 16, 2025

Hi @ridemountainpig , what do you think? :)

@ViGeng ViGeng requested a review from ridemountainpig March 17, 2025 12:18
@ViGeng
Copy link
Contributor Author

ViGeng commented Mar 17, 2025

As in the description, now let's require users to input a token as a safe choice.

Copy link
Contributor

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

Copy link
Collaborator

@pernielsentikaer pernielsentikaer left a 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 🔥

@raycastbot raycastbot merged commit 48b0bdb into raycast:main Mar 17, 2025
2 checks passed
Copy link
Contributor

Published to the Raycast Store:
https://raycast.com/ViGeng/github-profile

@raycastbot
Copy link
Collaborator

🎉 🎉 🎉

We've rewarded your Raycast account with some credits. You will soon be able to exchange them for some swag.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
extension fix / improvement Label for PRs with extension's fix improvements extension: github-profile Issues related to the github-profile extension OP is author The OP of the PR is the author of the extension status: awaiting response from dev
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants