Skip to content

Improve contributor relevancy calculation #19

@garno

Description

@garno

As of now, we calculate a contributor relevancy this way :

total_commits + total_commits_in_the_last_90_days

After discussions with the team, it has been mentioned that we should review this method to reduce the importance of old commits. This way, we would select active contributors more frequently.

If I’m not mistaken, GitHub gives us the possibility to retrieve contributors activities for the last year. We could ponderate these activities in the following way :

  • Last 3 monthscommit_count * 4
  • Last 6 monthscommit_count * 2
  • Last 12 monthscommit_count * 1
  • > 12 monthscommit_count * 0.5

These numbers could be tweaked with times to see if the results are satisfying.

Bonus : In #18, we’ve introduced the concept of per-repository configuration. We could allow a project to override these default values.

Thoughts?

✌️

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementNew feature or requestrfcRequest for comments on new features

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions