Conversation
stevepiercy
left a comment
There was a problem hiding this comment.
A few questions and documentation tweaks.
reports/github-contributor-report.md
Outdated
| @@ -19,48 +19,48 @@ This report shows the top contributors and organizations in the Plone ecosystem | |||
There was a problem hiding this comment.
I'm confused between the factors that define individual versus organization.
I expected Victor appear in the top 10, but he doesn't appear.
I also don't know whether I'm counted as an organization or an individual.
There was a problem hiding this comment.
You are right. The way it is right now is confusing. I simplified the report so that we only look at the number of merged PRs and we look at individual contributors and organisation contributors.
You are currently counted both as an individual and an organisation. One-person organisations are an edge case and I understood your previous comments that you want it that way.
There was a problem hiding this comment.
I think that one-person organizations should be allowed to choose whether to have their reported data counted under either their organization or their name, but not both. For me, I prefer my organization name.
There was a problem hiding this comment.
I'm not sure what I'm double checking? I still see myself reported as GitHub user stevepiercy, name Steve Piercy, and organization Steve Piercy - Website Builder.
There was a problem hiding this comment.
Yeah. Anyone can choose whatever they want in that regard. I will double-check the assignment. I also found a problem in the way we retrieve the core contribution stats. There seems to be a caching issue with the github api. Will provide a fix soon.
There was a problem hiding this comment.
I fixed the issue and from now on we will only count commits to the default branch and commits in PRs that have been merged. I have to re-run all the statistics. This will take a while...
reports/github-contributor-report.md
Outdated
| | 3 | stevepiercy | 1,935 | 655 | 2,590 | 34 | | ||
| | 4 | petschki | 1,575 | 436 | 2,011 | 55 | | ||
| | 5 | davisagli | 1,120 | 296 | 1,416 | 75 | | ||
| | 6 | sneridagh | 717 | 964 | 1,681 | 21 | |
There was a problem hiding this comment.
And here is Victor in the top 10 for past 3 years, but not in the top ten for last year only. That's unexpected.
reports/github-contributor-report.md
Outdated
| | 8 | petschki | 2,974 | 808 | 3,782 | 87 | | ||
| | 9 | pbauer | 2,663 | 556 | 3,219 | 135 | | ||
| | 10 | thet | 2,630 | 787 | 3,417 | 105 | | ||
| | 1 | mauritsvanrees | 14,415 | 1,540 | 15,955 | 178 | |
Co-authored-by: Steve Piercy <web@stevepiercy.com>
Co-authored-by: Steve Piercy <web@stevepiercy.com>
Co-authored-by: Steve Piercy <web@stevepiercy.com>
Co-authored-by: Steve Piercy <web@stevepiercy.com>
Co-authored-by: Steve Piercy <web@stevepiercy.com>
Co-authored-by: Steve Piercy <web@stevepiercy.com>
stevepiercy
left a comment
There was a problem hiding this comment.
This corrects my earlier mistake.
volto_stats.py
Outdated
| Fetches data from GitHub API for all contributors. | ||
|
|
||
| Statistics include: | ||
| - Merged pull requests (excluding open or closed or rejected pull requests) |
There was a problem hiding this comment.
Oops, I didn't check how that expanded. This version is consistent with intent of the function.
| - Merged pull requests (excluding open or closed or rejected pull requests) | |
| - Merged pull requests (excludes both open and rejected pull requests) |
…lone-contributor-statistics into gh-contributions-merged-prs-only
|
@stevepiercy ready for another review. |
Co-authored-by: Steve Piercy <web@stevepiercy.com>
|
@tisto I'm still listed as an individual in the GitHub stats report, not an organization. I prefer to be listed as the latter. |
|
@stevepiercy I found the issue. However, I need to re-generate the full set of data and I would like to refactor the code so that we do not have to retrieve data over and over again if the organisation mapping changes. Are you ok to merge this PR as it is? Otherwise, this will become a Frankenstein PR. I will fix your issue afterwards. |
|
@tisto let's merge. I'm also losing track of things, and having a base to work upon would help clarify. For me, my only outstanding question is, for one-person organizations, should they be listed only as a GitHub user, only as their organization name, or as both? Short answer, it depends on the context and available data. As I understand it, is this correct? for organization listings
for individual listings
I didn't see an obvious file to map GitHub usernames to real names, but I imagine that is probably not manageable. This file appears to be an aborted attempt, and was superseded by a Python script. |
|
@stevepiercy I fixed your numbers and the report. Both the individual contributor data and the organisation data now match: https://github.com/plone/plone-contributor-statistics/blob/a8e7b19ca67eeab0983befcb26e9dc287636d602/reports/github-contributor-report.md |
yes
yes
yes
We currently do not map github usernames to their fullname. We could do this.
I indeed started to write a script for this when I needed some mappings. I did not pursue this further, though. |
If your pull request closes an open issue, include the exact text below, immediately followed by the issue number. When your pull request gets merged, then that issue will close automatically.
Closes #