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

Feature Request: Badge Totals for Lines, Man Years and Cocomo for All Repos for a user/org GitHub profile #585

Open
HariSekhon opened this issue Feb 7, 2025 · 1 comment

Comments

@HariSekhon
Copy link

HariSekhon commented Feb 7, 2025

For my Home Page profile README, I wanted badges Totals for Lines, Total Man Years (related to #581) and Total Cocomo Cost Estimate for all my main public open source repos.

Right now I've worked around this using a script to checkout all my main repos and then run scc over them and parse and generate static shields badges, but this is not ideal.

Would it be possible to have SCC badges do these profile-level totals?

I appreciate this may seem like a bit of a heavy operation...

I believe this should use an online cache storing a few bytes with these totals with a 24 hour expiry to minimize repeating the calculation cost.

I suspect something like this is already used for regular SCC badges for performance?

@boyter
Copy link
Owner

boyter commented Feb 8, 2025

Yes a cache is already used. You can actually see the full code for it here https://github.com/boyter/scc/tree/master/cmd/badges

This request however... is not going to happen as written. Simply because for my own account it would be something like 100 repos, which would get be banned by github I would imagine.

However, I can see somewhere where you can pick 1 to say 10 projects to do this for and combine... which is something ill investigate. So not profile level, but allowing you to logically group things together.

Keep in mind that I pay for the badges out of pocket too, and while they are low cost they are not free, hence wanting to keep the overhead low where possible.

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

2 participants