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

feat: include gist stars into total stargazers #320

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

qoomon
Copy link

@qoomon qoomon commented Mar 21, 2025

fixes: #319

Copy link

vercel bot commented Mar 21, 2025

@qoomon is attempting to deploy a commit to the ryo-ma's Team Team on Vercel.

A member of the Team first needs to authorize it.

Copy link

vercel bot commented Mar 22, 2025

The latest updates on your projects. Learn more about Vercel for Git ↗︎

Name Status Preview Comments Updated (UTC)
github-profile-trophy ✅ Ready (Inspect) Visit Preview 💬 Add feedback Mar 22, 2025 0:08am

@ryo-ma
Copy link
Owner

ryo-ma commented Mar 25, 2025

It's a good idea, but there's the issue of the cost of Github Tokens.
As more data is retrieved by query, Github Tokens will run out.

@qoomon
Copy link
Author

qoomon commented Mar 25, 2025

@ryo-ma I had the same issue with my project https://github.com/qoomon/starlines My solution was to trigger github action workflow runs to gather the data from graphQL and cache them as github release artefacts. The works very well also for a bunch of results like querying 240k stars (incl. creating date) from https://github.com/facebook/react

Workflow

  • Call API Serverless Function
    • no cached image available
      • response with work in progress image
      • triggers GitHub Workflow
        • gather all (new) data
        • cache data as GitHub release artifact
        • create and cache image as GitHub release artifact
    • cached image available
      • response with cached image
      • trigger new workflow run in case cached image is outdated

Copy link

@RlxChap2 RlxChap2 left a comment

Choose a reason for hiding this comment

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

actually this will help many people like me to add total stats ❤️👍

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.

[Feature Request] Take GitHub Gist stars into account as well
3 participants