Giter VIP home page Giter VIP logo

Comments (8)

vn7n24fzkq avatar vn7n24fzkq commented on May 31, 2024 2

@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.

AkkyOrz avatar AkkyOrz commented on May 31, 2024 1

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.

pullRequests(first: 1) {
totalCount
}

(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.

vn7n24fzkq avatar vn7n24fzkq commented on May 31, 2024

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.

repositoriesContributedTo(first: 1,includeUserRepositories:true, privacy:PUBLIC, contributionTypes: [COMMIT, ISSUE, PULL_REQUEST, REPOSITORY]) {

But there is no any filter for all contributions count

from github-profile-summary-cards.

vn7n24fzkq avatar vn7n24fzkq commented on May 31, 2024

@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.
image

from github-profile-summary-cards.

AkkyOrz avatar AkkyOrz commented on May 31, 2024

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.

Screenshot from 2021-09-06 14-40-49

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.

vn7n24fzkq avatar vn7n24fzkq commented on May 31, 2024

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.

AkkyOrz avatar AkkyOrz commented on May 31, 2024

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.

stale avatar stale commented on May 31, 2024

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)

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.