mirego / dispatch

🦀 Dispatch makes sure pull requests within a GitHub organization get reviewed by the right people.
https://open.mirego.com
BSD 3-Clause "New" or "Revised" License
25 stars 3 forks source link

Improve contributor relevancy calculation #19

Open garno opened 5 years ago

garno commented 5 years ago

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 :

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?

✌️

marclefrancois commented 3 years ago

I think would be important to have a cutoff configurable per project: contributors that haven't touched the repo for X months, ignore them

remi commented 3 years ago

I think would be important to have a cutoff configurable per project

A user opt-out could also be used instead. I should be able to opt-out from a project (and maybe automatically after X weeks after my last commit?) after, for example, pushing a single small commit that only updates the README.md file, not just wait for the automatic cutoff time period 🙂