Git Product home page Git Product logo

pixel-profile's Issues

Total commits number

Bug report

Description / Observed Behavior

The shown total commits number is not for the current year as displayed in the card.
github-stats

Expected Behavior

The expected number for my profile is 1.3k.
total-commits

Additional Context

I skimmed through the code, I've noticed you're using the GraphQL API.
I don't know if that would help but the api provides a from variable which could be passed to the contributionCollection

contributionsCollection(from: "2024-01-01T00:00:00Z") {
  totalCommitContributions
  startedAt
}

when passing the start of the year it would return the expected number of contributions

"contributionsCollection": { 
   "totalCommitContributions": 1337,
   "startedAt": "2024-01-01T00:00:00Z"
},

Add info on required env vars

Cool project – really love the approach!

It looks like the PAT_1 env var is required in order to run the api locally or on vercel. Otherwise, you'll get a blank image resulting from a "No GitHub API tokens found" error. Prolly would be a good idea to support a cleaner env var name like GITHUB_API_TOKEN or something.

I had to generate a new github personal auth token w/ read user scope in order to get it to work.

Maybe consider using dotenv-safe with a .env.example file to throw an error right away if missing env vars instead of throwing a 500 at the api level?

Cheers && thanks 🙏

Here's my profile from my deployed version:

github stats

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.