Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Conversation

Copy link
Contributor

Copilot AI commented Nov 2, 2025

Adds visibility into bounty program metrics on /bounties/ page: total $5 issues count, payout statistics, and a leaderboard of top contributors.

Changes

Backend (website/views/organization.py)

  • Extended Listbounties.get() to query GitHubIssue model for:
    • Count of closed issues with has_dollar_tag=True
    • Count of paid issues (where sponsors_tx_id or bch_tx_id exists)
    • Total payout amount (paid_count * BOUNTY_AMOUNT)
    • Top 10 earners aggregated by assignee with issue count and earnings
  • Optimized leaderboard query with select_related('assignee') to prevent N+1

Frontend (website/templates/bounties_list.html)

  • Added statistics cards displaying:
    • Total $5 Issues (with document icon, red accent)
    • Paid Issues (with checkmark icon, green accent)
    • Total Payouts (with currency icon, blue accent)
  • Added leaderboard table (conditionally rendered when data exists):
    • Rank with gold/silver/bronze styling for top 3
    • Contributor avatar, name, GitHub link
    • Issues completed count and total earned

Screenshot

Bounty Statistics

Statistics section displays above search filters. Leaderboard appears when paid issues with assignees exist in database.

Warning

Firewall rules blocked me from connecting to one or more addresses (expand for details)

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

  • https://api.github.com/repos/OWASP-BLT/BLT/issues
    • Triggering command: /home/REDACTED/.cache/pypoetry/virtualenvs/blt-yuw0N2NF-py3.12/bin/python manage.py runserver 0.0.0.0:8000 (http block)

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

Original prompt

on the /bounties/ page show a leaderboard of the top earners, show a count of how many $5 issues there are and show a grand total of all payouts.


💬 We'd love your input! Share your thoughts on Copilot coding agent in our 2 minute survey.

@coderabbitai
Copy link
Contributor

coderabbitai bot commented Nov 2, 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] Add leaderboard for top earners on bounties page Add bounty statistics and top earners leaderboard to /bounties/ page Nov 2, 2025
Copilot AI requested a review from DonnieBLT November 2, 2025 17:22
@DonnieBLT DonnieBLT marked this pull request as ready for review November 2, 2025 17:32
@DonnieBLT DonnieBLT merged commit 9eeacac into main Nov 2, 2025
2 checks passed
@DonnieBLT DonnieBLT deleted the copilot/add-bounty-leaderboard-and-counts branch November 2, 2025 17:32
@github-project-automation github-project-automation bot moved this from Backlog to Done in 📌 OWASP BLT Project Board Nov 2, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

Status: Done

Development

Successfully merging this pull request may close these issues.

2 participants