Comments (8)
@AkkyOrz Thanks for your report again, it is really helpful, other counts may have the same problem.
Maybe the problem @wh1t3h47 got was caused by the same reason.
I will investigate this in-depth in my free time, and look if there is any way can fix this problem.
from github-profile-summary-cards.
Hi! I'm @AkkyOrz
First of all, thank you for an amazing product, @vn7n24fzkq.
I have a feature request similar to @wh1t3h47.
Can you point out which count is wrong.
"Total PRs" is the one that I recognize as giving different values than what I expect. (The other values can be wrong, but I haven't noticed it yet)
I created a PR for a repository that belongs to my organization and merged it, but it is not counted up.
If you follow the example above, this is probably the case.
github-profile-summary-cards/src/github-api/profile-details.js
Lines 44 to 46 in a8a74c7
(I don't know much about the GitHub GraphQL API, so I couldn't figure out how to reflect the repository information in the query.)
from github-profile-summary-cards.
Hi @wh1t3h47, thanks for the issue.
Can you point out which count is wrong, after that, I can figure out is this a bug or a feature we can add.
For example, we only count public repo for the number of repositories contributed to.
But there is no any filter for all contributions count
from github-profile-summary-cards.
@AkkyOrz Thanks for your report.
The number of total PRs is from GitHub API v4, I am not sure why it is not counted up.
I guess maybe it is just not update yet, because of raw file cache or the card is not re-generate yet.
Can you try to use the GitHub GraphQL API Explorer to get the number of total PRs?
GraphQL
query UserDetails($login: String!) {
user(login: $login) {
pullRequests(first: 1) {
totalCount
}
}
}
Query Variables
{"login":"AkkyOrz"}
It is should looks like this.
And you need to change the login value in query variable to your username.
from github-profile-summary-cards.
Thank you for your quick reply, @vn7n24fzkq !
I guess maybe it is just not update yet, because of raw file cache or the card is not re-generate yet.
Can you try to use the GitHub GraphQL API Explorer to get the number of total PRs?
Your example is very easy for me to understand how to use the GitHub GraphQL API.
I tried it, and the value is different from my generated card.
I guess that my personal access token doesn't have enough privileges to make it work the way I expect it to.
The GraphQL API Explorer asked me to grant the "Organization access" permissions.
Therefore, in order to reproduce the same behavior as the GitHub GraphQL API Explorer, we may need to allow Organization Access in some way.
As far as I know, there are no examples that can be achieved with Personal Access Token.
It may be difficult to make it work to include org's statics.
from github-profile-summary-cards.
Just to make sure, is the total PRs count from GitHub GraphQL API Explorer different to the generated card for you.
And is the number from GitHub GraphQL API Explorer you expect?
If that is true, as you said, it would be difficult to make it work to include org's stats, and I will investigate in depth.
from github-profile-summary-cards.
Just for make sure, is that total PRs count from GitHub GraphQL API Explorer different to the generated card for you.
Yes.
And is the number from GitHub GraphQL API Explorer you expect?
This is also correct.
To add to this, when I granted "Organization access", the number of total PRs which was obtained through GitHub GraphQL API Explorer increased by the number of PRs issued by me in the organization.
If that is true, as you said, it would be difficult to make it work to include org's stats, and I will investigate in depth.
from github-profile-summary-cards.
This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions.
from github-profile-summary-cards.
Related Issues (20)
- [BUG] Warning: Invalid status code: 128 Error: git push HOT 4
- [Feature request] Language Portugol HOT 1
- [BUG] What is the permissions correct? HOT 1
- [Feature request] Exclude specific repositories from `Commits` card HOT 1
- Avoid action pushing to branch automatically HOT 10
- [Feature request] Option to remove Github icon from Stats card HOT 2
- [BUG]Output of info in Excluded languages is wrong. HOT 2
- [Feature request] Add new themes screenshots and examples
- [BUG] Failing to create own Vercel project HOT 8
- [Feature request] Add option to provide a custom background color HOT 1
- [Feature request] README.md correction suggestion
- [Feature request] able to provide an option to combine git commits? HOT 3
- [Feature request] How to show all languages in a list instead of top 5 in top languages for commits and repos HOT 1
- [BUG] Inaccurate star count HOT 2
- [BUG] Inaccurate commit count HOT 2
- [BUG] Zig language is recognized as astro. HOT 2
- [Feature request] Wiki Rework HOT 11
- [Feature request] Hide email
- [BUG] CSS and JS languages update is not getting reflected HOT 1
- [BUG] Issue with .yml template code not creating GitHub workflow HOT 3
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-summary-cards.