Skip to content

Conversation

Copy link
Contributor

Copilot AI commented Nov 15, 2025

Per issue comments, moves the GSoC contributor leaderboard to organization detail pages and makes it work for all organizations, not just OWASP.

Changes

Backend (website/views/organization.py)

  • Added get_leaderboard_data() method to OrganizationDetailView
  • Queries merged PRs since 2024-11-11 across all org repos
  • Returns top 10 contributors ranked by PR count
  • Uses set tracking to prevent duplicate contributor counting

Frontend (website/templates/organization/organization_detail.html)

  • Added leaderboard table after top contributors section
  • Shows rank, avatar, username, and merged PR count
  • Trophy/medal/award icons for top 3 positions
  • Only renders when data exists

Cleanup (website/templates/gsoc.html)

  • Removed GitHub issue links labeled as "GSOC 2025/2024 Leaderboard"
  • Simplified OWASP Partnership card layout

The leaderboard data structure returned to template:

[
    {
        "contributor": <Contributor>,
        "pr_count": 42,
        "url": "https://github.com/username",
        "username": "username",
        "avatar_url": "https://avatars.githubusercontent.com/..."
    },
    # ... top 10
]
Original prompt

This section details on the original issue you should resolve

<issue_title>move the leaderboard from the gsoc page to the organization detail page have it only show on the owasp organization for now</issue_title>
<issue_description></issue_description>

Comments on the Issue (you are @copilot in this section)

@DonnieBLT @rinkitadhana it's essentially to move the same logic on to the organization page you could make it work for all organizations now (no need to restrict it to owasp) and yes to remove it from the gsoc page.

✨ Let Copilot coding agent set things up for you — coding agent works faster and does higher quality work when set up for your repo.

@coderabbitai
Copy link
Contributor

coderabbitai bot commented Nov 15, 2025

Important

Review skipped

Bot user detected.

To trigger a single review, invoke the @coderabbitai review command.

You can disable this status message by setting the reviews.review_status to false in the CodeRabbit configuration file.


Comment @coderabbitai help to get the list of available commands and usage tips.

Copilot AI changed the title [WIP] Move leaderboard from GSOC page to organization detail page Move contributor leaderboard from GSoC page to organization detail pages Nov 15, 2025
Copilot AI requested a review from DonnieBLT November 15, 2025 20:26
Copilot finished work on behalf of DonnieBLT November 15, 2025 20:26
@github-actions github-actions bot added files-changed: 3 PR changes 3 files and removed files-changed: 0 PR changes 0 files labels Nov 16, 2025
@DonnieBLT DonnieBLT added d15 and removed d15 labels Nov 16, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

files-changed: 3 PR changes 3 files

Projects

Status: Backlog

Development

Successfully merging this pull request may close these issues.

move the leaderboard from the gsoc page to the organization detail page have it only show on the owasp organization for now

2 participants