github / issue-metrics

Gather metrics on issues/prs/discussions such as time to first response, count of issues opened, closed, etc.

Home Page:https://github.blog/2023-07-19-metrics-for-issues-pull-requests-and-discussions/

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Stats about new contributors

Piedone opened this issue · comments

During our community meeting at Orchard Core on the topic of integrating this action (OrchardCMS/OrchardCore#14585) it came up that it would be nice to have stats about new contributors as well.

I.e., in an issue like OrchardCMS/OrchardCore#15073, we'd also have a "Number of items opened by new contributors" line in the aggregated metrics table. A new contributor can be defined as somebody who GitHub indicates as a first-time contributor like this:

296902235-32f27aad-2c5a-4f0d-963b-722af1caedb2

I'm not sure how this is calculated. In any case, this would be a user who didn't yet author a contribution of that type (e.g., didn't open an issue before and thus they're a new contributor for issues) or didn't create any issues/discussions/PRs before in the project (whichever is easier to compute).

What do you think?

This seems like it could be accomplished. While there isn't an API endpoint to tell us if the user is contributing for the first time, I see that there are other projects like this one that accomplish this by checking to see if the issue/pr author has any other issues/prs in that repo previously. Then the "Number of items opened by new contributors" would be the sum of all the items found.

Seems like a good idea to me in order to quickly assess the overall volume of new contributor's contributions in that time period.

Great! It seems it's doable for each contribution type separately, then.

This issue is stale because it has been open 21 days with no activity. Remove stale label or comment or this will be closed in 14 days.

Well, we at Orchard Core are still interested in this.