-
Notifications
You must be signed in to change notification settings - Fork 330
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[Feature request] Support contributions in private organizations #52
Comments
Hi @wh1t3h47, thanks for the issue. For example, we only count public repo for the number of repositories contributed to.
But there is no any filter for all contributions count
|
Hi! I'm @AkkyOrz I have a feature request similar to @wh1t3h47.
"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) 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.) |
@AkkyOrz Thanks for your report. 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. |
Thank you for your quick reply, @vn7n24fzkq !
Your example is very easy for me to understand how to use the GitHub GraphQL API. I guess that my personal access token doesn't have enough privileges to make it work the way I expect it to. Therefore, in order to reproduce the same behavior as the GitHub GraphQL API Explorer, we may need to allow Organization Access in some way. |
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. |
Yes.
This is also correct. 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. |
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. |
Context
I set up PAT and everything according to the wiki, GitHub actions runs successfully, but my contributions in private organizations are not counted. I am not sure if the same applies to private repositories in which I have access and contributed, but are owned by someone else.
In my organization context, I did not create the project, but contributed heavily to it, even on projects that I created, profile summary seems to ignore them. I'd reproduce the behavior with a language that I never created a repo on (like Lua) and heavily code on it, as I'm not 100% sure if they are not being counted
Alternatives
I tried to set up PAT, but my stats did not seem to change
If the feature request is approved, would you be willing to submit a PR?
Yes, although I'm under a tight schedule and may delay it about a month
The text was updated successfully, but these errors were encountered: