feat(scoring): add Evergreen playstyle & fix active_years calculation bug - #116
Open
KrishnaX12 wants to merge 5 commits into
Open
feat(scoring): add Evergreen playstyle & fix active_years calculation bug#116KrishnaX12 wants to merge 5 commits into
KrishnaX12 wants to merge 5 commits into
Conversation
KrishnaX12
force-pushed
the
feat/evergreen-playstyle
branch
from
August 17, 2026 08:39
6e0da07 to
c4490e1
Compare
KrishnaX12
commented
Aug 17, 2026
KrishnaX12
left a comment
Author
There was a problem hiding this comment.
@Younesfdj Hey! I updated this PR with the new Evergreen playstyle to reward long-term consistency. I also patched a major bug in the active_years scoring logic that was severely undercounting veteran developers (like Linus).
Tested locally and bumped the cache. Screenshot attached of it working perfectly on Torvalds's profile! Let me know what you think!
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Description
This PR introduces the new Evergreen playstyle to reward developers for long-term consistency, and also patches a critical bug in the engine's
active_yearsscoring logic.Changes Made
lib/scoring/playstyles.ts):Evergreenplaystyle using the leaf (🍃) icon.active_yearsLogic (lib/github/signals.ts):active_yearswas previously being estimated by looking at the creation and push timestamps of the user's top 100 repositories. This severely undercounted developers (like Linus Torvalds) who commit heavily over many years but only to a small handful of repositories.active_yearslogic to calculate directly from thecontributionYearspayload, ensuring every single calendar year with at least 1 contribution is perfectly counted.lib/scout.ts):CACHE_VERSIONtov3to globally bust the Redis cache and force all profiles to recalculate their trueactive_yearswhen this deploys to production.