From aa2f96bdc05fc093d39a02183c328816937f4b4f Mon Sep 17 00:00:00 2001 From: Matija Stepanic Date: Thu, 25 Jun 2026 16:49:16 +0200 Subject: [PATCH] UI: show excluded repositories and per-user excluded amount MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit - Moves the excluded-repositories notice to the top of each region page (right under the title) so it's immediately visible, and shows the count of excluded repos in the heading. - Shows the per-user amount removed ("−N excluded") next to a user's contributions when their count was reduced by an excluded repository, making it clear why a user is ranked where they are. Both are conditional on the new fields emitted by the counter (excluded_repos and per-user excluded), so pages whose data predates this are unaffected. Co-Authored-By: Claude Opus 4.8 (1M context) --- _layouts/default.html | 17 ++++++++++++++++- 1 file changed, 16 insertions(+), 1 deletion(-) diff --git a/_layouts/default.html b/_layouts/default.html index 51e7f7b4f5..2ae41c9772 100644 --- a/_layouts/default.html +++ b/_layouts/default.html @@ -59,6 +59,21 @@

committers.top

{% if location %}

Most active GitHub users in {{location.title}}

+ {% if location.excluded_repos %} +
+ ⚖️ Excluded repositories ({{location.excluded_repos | size}}) +

+ For fairer rankings, commits made to the repositories below are excluded from the contribution counts on this page + (e.g. dataset/archive repositories whose automated commit volume would otherwise dominate a user's total). + Where a user's count was reduced, the amount removed is shown as −N excluded next to their contributions. +

+
    + {% for repo in location.excluded_repos %} +
  • {{repo}}
  • + {% endfor %} +
+
+ {% endif %}

This is a list of most active GitHub users in {{location.title}} over the past year. Other countries/regions can be found here. This list was generated at {{location.generated}} and machine-readable JSON is available for: @@ -123,7 +138,7 @@

Most active GitHub users in {{location.title}}

{{user.rank}}. {{user.login}}
({{user.name}}) - {{user.contributions}} + {{user.contributions}}{% if user.excluded and user.excluded > 0 %}
−{{user.excluded}} excluded{% endif %} Avatar for {{user.login}} {% endfor %}