Skip to content

Conversation

Copy link
Contributor

Copilot AI commented Jul 28, 2025

Fixes #1080

Problem

The team page at https://www.yiiframework.com/team was only showing contributors from the yiisoft/yii2 repository, missing contributors from all other yiisoft projects like yii, db, cache, validator, and many others.

Solution

This PR modifies the contributor fetching logic to:

  1. Fetch all repositories from the yiisoft organization using the GitHub Organization API
  2. Aggregate contributors from every repository under the yiisoft org
  3. Deduplicate and sum contributions for users who contribute to multiple repositories
  4. Sort by total contributions across all repositories

Changes Made

ContributorsController.php

  • Replaced hardcoded ['yiisoft', 'yii2'] parameters with dynamic fetching of all yiisoft repositories
  • Added contributor aggregation logic that sums contributions for users appearing in multiple repos
  • Maintained existing error handling and rate limiting
  • Preserved the same output data structure for backward compatibility

team.php View

  • Updated links from github.com/yiisoft/yii2/graphs/contributors to github.com/yiisoft
  • Changed description text from "contributed to the yiisoft/yii2 repository" to "contributed to yiisoft repositories"

Impact

  • More inclusive recognition: Contributors to any yiisoft project are now recognized, not just yii2
  • Accurate contribution counts: Users contributing to multiple repositories get proper credit for their total contributions
  • Future-proof: Automatically includes contributors from new repositories added to the yiisoft organization
  • Comprehensive community representation: Reflects the true scope of the Yii ecosystem

Deployment

After merging, run php yii contributors/generate to fetch the updated contributor data from all yiisoft repositories.

Warning

Firewall rules blocked me from connecting to one or more addresses

I tried to connect to the following addresses, but was blocked by firewall rules:

  • asset-packagist.org
    • Triggering command: /usr/bin/php8.3 -n -c /tmp/g59SO3 /usr/bin/composer update (dns block)

If you need me to access, download, or install something from one of these locations, you can either:


💡 You can make Copilot smarter by setting up custom instructions, customizing its development environment and configuring Model Context Protocol (MCP) servers. Learn more Copilot coding agent tips in the docs.

…ositories

Co-authored-by: samdark <47294+samdark@users.noreply.github.com>
Copilot AI changed the title [WIP] @yiisoft-contrib/yiiframework.com/issues/1080 Need to get community contributors from all repositories under yiisoft org instead of just yii2. Fetch community contributors from all yiisoft repositories instead of just yii2 Jul 28, 2025
Copilot AI requested a review from samdark July 28, 2025 13:21
Copilot finished work on behalf of samdark July 28, 2025 13:21
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Get comminity contributors from all yiisoft repos

2 participants