You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Hi, it looks like the "all activities" contributor stats are unreliable.
I believe this happens mostly because the GitHub "authored a commit" metric is wrong, but I didn't verify the other metrics so potentially there are additional metrics wrongly calculated that contribute to the wrong sum.
Currently, there are cases when users listed in the top 3 had only 3-5 merged PRs to upstream, while contributors with much more merged PRs are ranked lower. My assumption is that maybe commits inside a PR are counted instead of/in addition to merged PRs, but I may be wrong.
Steps to reproduce
You can repro this by choosing Git "Authored a commit" metric and GitHub "Authored a commit" metric individually for argoproj/argo-workflows for the last 90 days, observe that the top contributors are completely different for those 2 metrics, and cross the stats with counting the merged PRs using a GitHub UI query "is:pr author:<ANY_USER_FROM_THE_LFX_TOP_3"
Expected vs. actual behavior
Only merged PRs should count towards the commit contributions.
If there is a metric that counts commits inside a PR, I believe it should be removed.
You're assumption is correct, we count both commits in PRs and commits that were merged. You can check the distinction between them by filtering activities, either by Git or GitHub. It's in the GitHub activities that we consider commit activities as well.
cc @jonathimer feedback on wether or not we should consider PR commits as contributions.
Hi, I am the issue author.
I'd advocate for either removing this metric entirely (unless there is a rationale I am missing here, don't see an added value of displaying the number of commits a contributor made before their PR was merged. Does the fact the I made 10 commits on my PR and someone made just 1 commit on theirs mean I contributed more or less than them?) or at least leaving the metric out of the 'all activities' sum and displaying a UI warning next to the metric, if it must stay.
Activity
joanagmaia commentedon May 18, 2026
Hey, thanks for opening this issue.
You can check our documentation for more details on which contributions we consider https://insights.linuxfoundation.org/docs/introduction/contributions/
You're assumption is correct, we count both commits in PRs and commits that were merged. You can check the distinction between them by filtering activities, either by Git or GitHub. It's in the GitHub activities that we consider commit activities as well.
cc @jonathimer feedback on wether or not we should consider PR commits as contributions.
reggie-k commentedon May 19, 2026
Hi, I am the issue author.
I'd advocate for either removing this metric entirely (unless there is a rationale I am missing here, don't see an added value of displaying the number of commits a contributor made before their PR was merged. Does the fact the I made 10 commits on my PR and someone made just 1 commit on theirs mean I contributed more or less than them?) or at least leaving the metric out of the 'all activities' sum and displaying a UI warning next to the metric, if it must stay.
reggie-k commentedon Jun 3, 2026
@joanagmaia @jonathimer What are your thoughts on the above?