Comments (11)
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.
com_ple__ted___
from github-profile-trophy.
Changed the Env Variable to GITHUB_TOKEN1
and now its working
from github-profile-trophy.
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.
com_ple__ted___
Let me see
from github-profile-trophy.
com_ple__ted___
Still not fixed
from github-profile-trophy.
Still no solutions?
from github-profile-trophy.
Nope @Emilien-Lambert
from github-profile-trophy.
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.
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.
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)
- UNKNOWN excluded doesn't work
- This Serverless Function has crashed. HOT 1
- Including private repos HOT 1
- The Server Error 404 HOT 1
- Commits counter got stucked HOT 2
- New time trophy HOT 2
- Jack of all Trades trophy not working
- commits not dynamic HOT 1
- Task seems to be offline or so HOT 25
- trophies have no spaces and alignment HOT 2
- Deployment has been disabled HOT 2
- Not working HOT 1
- Contribution Guidlines
- Add labels to issues HOT 4
- Feature: remote theme HOT 3
- Vercel-Deployment Link is expired. HOT 1
- There is a Space, at the end of the Image of the Trophies HOT 7
- [![trophy](https://github-profile-trophy.vercel.app/?username=ryo-ma)](https://github.com/ryo-ma/github-profile-trophy)
- Vercel and GitHub PAT permissions HOT 5
- [Question] GitHub API How to HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from github-profile-trophy.