cncf / devstats.archive

📈CNCF-created tool for analyzing and graphing developer contributions
https://devstats.cncf.io/
Apache License 2.0
445 stars 147 forks source link

Clarification regarding contirbution metrics #376

Closed ranrib closed 1 year ago

ranrib commented 1 year ago

Hi there!

Thanks for having devstats, it's amazing :) I wanted to ask a few questions regarding the contribution metric since sometimes it isn't clear

image

Thanks,

lukaszgryglicki commented 1 year ago

So we are counting authors of events, and only some events are considered contributions, namely:

This is a system-wide definition and applies everywhere. In the case of a PR merge (event = PullRequest, action = merged) GHA indeed assigns the author to somebody who actually merged a PR. So in case of a PR merge, it will be assigned to somebody who did that merge, PR creator will "get" a contribution when he/she opens a PR. Sorry but this is how GitHub archives (and GitHub APIs) work, can't do anything with it.

lukaszgryglicki commented 1 year ago

I'm closing this, please reopen it if needed, also note that there are more dashboards that allow insights into more specific metrics that contributors. I'm also letting you know that I won't change the definition of what contributors is because it is used everywhere and was agreed upon a long time back. If you need something specific for you, like the count of the number of given contributor's PRs opened and then merged by someone else, etc - that can be done as a separate dashboard specific to this need (feature request).

ranrib commented 1 year ago

Thanks @lukaszgryglicki! it helps