github / issue-metrics

Gather metrics on issues/prs/discussions such as time to first response, count of issues opened, closed, etc.
https://github.blog/2023-07-19-metrics-for-issues-pull-requests-and-discussions/
MIT License
369 stars 44 forks source link

Stats about new contributors #190

Open Piedone opened 5 months ago

Piedone commented 5 months ago

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

I.e., in an issue like https://github.com/OrchardCMS/OrchardCore/issues/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?

zkoppert commented 5 months ago

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.

Piedone commented 5 months ago

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

github-actions[bot] commented 3 months ago

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.

Piedone commented 3 months ago

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