Getting PRs for Private/Org repos to list? #232
-
Been trying to get my metrics to show the PR's I've created/reviewed in my private org, and I cannot for the life of me figure out what I'm doing wrong: https://github.com/tstackhouse/tstackhouse/blob/main/.github/workflows/metrics.yml My token has Update: Did some more looking into this, and poking at the GraphQL API, it looks like in order to get org repos that you have access to requires both |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 4 replies
-
Sorry to hear that you had trouble with setup 😕 The PR reviews/created stats are obtained from metrics/source/plugins/base/queries/user.graphql Lines 34 to 41 in d9c943f It isn't affected by the I didn't know the It may actually fix other metrics in this case since as you may have noticed some stats are computed by iterating on repositories (like stargazers, forks, watchers and languages). metrics/source/plugins/base/index.mjs Line 26 in d9c943f By adding If you want you can fork this repo, make changes on it and then switch used action from Only drawback is that the docker image will be rebuilt each time on forks, so workflows will be around ~5min which may be a bit tedious for quick tests. I'll try to troubleshoot from my side too whenever I have some free time, hope it'll help 🙂 |
Beta Was this translation helpful? Give feedback.
Sorry to hear that you had trouble with setup 😕
I don't use GitHub organizations that much so I may be missing something too.
The PR reviews/created stats are obtained from
contributionsCollection
from the following query:metrics/source/plugins/base/queries/user.graphql
Lines 34 to 41 in d9c943f
It isn't affected by the
affiliations
constraint, so maybe it is possible that this endpoint actually doesn't consider organizations w…