Giter Club home page Giter Club logo

Comments (11)

MrBlueBird2 avatar MrBlueBird2 commented on May 9, 2024 2

Hey @MrBlueBird2 are you sure the commit trophy is actually counting for private repos? I was about to open an issue for private data. Cheers

The Commit Trophy counts Private + Public Repos, Both, But the pr trophy dosen't

from github-profile-trophy.

Akhi2007 avatar Akhi2007 commented on May 9, 2024 2

com_ple__ted___

from github-profile-trophy.

mbadr2200 avatar mbadr2200 commented on May 9, 2024 1

Changed the Env Variable to GITHUB_TOKEN1 and now its working

from github-profile-trophy.

LapoElisacci avatar LapoElisacci commented on May 9, 2024

Hey @MrBlueBird2 are you sure the commit trophy is actually counting for private repos? I was about to open an issue for private data.
Cheers

from github-profile-trophy.

MrBlueBird2 avatar MrBlueBird2 commented on May 9, 2024

com_ple__ted___

Let me see

from github-profile-trophy.

MrBlueBird2 avatar MrBlueBird2 commented on May 9, 2024

com_ple__ted___

Still not fixed

from github-profile-trophy.

Emilien-Lambert avatar Emilien-Lambert commented on May 9, 2024

Still no solutions?

from github-profile-trophy.

MrBlueBird2 avatar MrBlueBird2 commented on May 9, 2024

Nope @Emilien-Lambert

from github-profile-trophy.

Nixxen avatar Nixxen commented on May 9, 2024

It might be possible to do something similar to what github readme stats has done and add a Github personal access token to the requests(see their readme for hosting your own Vercel instance). That way users could host their own instance of Github Profile Trophy with their own PAT, with access to their private repositories.

This would require a "modular" way to read the PAT within the code, I.e. from a .env.

Edit:
Just tested it. There's already a "GITHUB_TOKEN" env variable in the code. Add your PAT to that when deploying to Vercel (or any other host).
Works perfectly.

from github-profile-trophy.

mbadr2200 avatar mbadr2200 commented on May 9, 2024

It might be possible to do something similar to what github readme stats has done and add a Github personal access token to the requests(see their readme for hosting your own Vercel instance). That way users could host their own instance of Github Profile Trophy with their own PAT, with access to their private repositories.

This would require a "modular" way to read the PAT within the code, I.e. from a .env.

Edit: Just tested it. There's already a "GITHUB_TOKEN" env variable in the code. Add your PAT to that when deploying to Vercel (or any other host). Works perfectly.

is it still working ? , I try it and I get this error

{ message: �[32m"Bad credentials"�[39m, documentation_url: �[32m"https://docs.github.com/graphql"�[39m }
TypeError: Cannot read properties of undefined (reading 'data')
at GithubAPIClient.request (file:///var/task/src/github_api_client.ts:130:20)
at async GithubAPIClient.requestUserIssue (file:///var/task/src/github_api_client.ts:69:12)
at async Promise.all (index 1)
at async GithubAPIClient.requestUserInfo (file:///var/task/src/github_api_client.ts:20:21)
at async default (file:///var/task/index.ts:59:20)
at async processEvents (file:///var/task/.runtime.ts:190:16)
{ message: �[32m"Bad credentials"�[39m, documentation_url: �[32m"https://docs.github.com/graphql"�[39m }
{ message: �[32m"Bad credentials"�[39m, documentation_url: �[32m"https://docs.github.com/graphql"�[39m }
{ message: �[32m"Bad credentials"�[39m, documentation_url: �[32m"https://docs.github.com/graphql"�[39m }

from github-profile-trophy.

AdithyaGopakumar avatar AdithyaGopakumar commented on May 9, 2024

Is there any other way that this can be done?
or could some explain how you guys solved it, its confusing!

from github-profile-trophy.

Related Issues (20)

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.