Skip to content

Conversation

@qoomon
Copy link

@qoomon qoomon commented Mar 21, 2025

fixes: #319

@vercel
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.

@vercel
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. This 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

4 participants