Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

List of top contributors 🔝 #237

Open
1 task
Tracked by #233
nelsonic opened this issue Feb 4, 2025 · 3 comments
Open
1 task
Tracked by #233

List of top contributors 🔝 #237

nelsonic opened this issue Feb 4, 2025 · 3 comments

Comments

@nelsonic
Copy link
Member

nelsonic commented Feb 4, 2025

Todo

  • Write an SQL Query that lists the top contributors in the Org grouped by the number of contribs
@nelsonic nelsonic mentioned this issue Feb 4, 2025
4 tasks
@nelsonic
Copy link
Member Author

nelsonic commented Feb 4, 2025

contribs:

Image

repositories:

Image

users:

Image

@nelsonic
Copy link
Member Author

nelsonic commented Feb 4, 2025

SELECT c.user_id, 
SUM(c.count), u.login
FROM contribs c
LEFT JOIN users u 
	ON u.id = c.user_id
GROUP BY c.user_id, u.login
ORDER By sum DESC
Image

What impresses me about this result is that there are 382 Unique Contributors across the @dwyl projects. 🎉

@nelsonic
Copy link
Member Author

Continue:

pgweb --host localhost --user postgres --db app_dev

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

No branches or pull requests

1 participant