-
-
Notifications
You must be signed in to change notification settings - Fork 5.5k
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
[github] Count all contributors in organization #834
Comments
Thanks for the suggestion. Does the Github API have a way to get this information without making a lot of calls? |
@paulmelnikow no, there is no single API method to get this info. justification: |
What are the two calls? |
@paulmelnikow Need to obtain names of organization's repos and then retrieve contributors of each repo. Actually, it's n+1 calls. Are there any way to make some custom badge and just point it to endpoint which returns already aggregated info? |
Yes, that is possible. There is a PR open #820 to provide a custom badge from a JSON URL. Another possibility, perhaps simpler, is for the endpoint doing the aggregation to issue a redirect to img.shields.io with the data in the URL, e.g.: https://img.shields.io/badge/organization-10%20contributors-blue.svg |
@paulmelnikow #820 is good option for us. Since we want this badge to be used in MDs, there is no possibility to use JS to obtain aggregated data for building URL from option 2. When PR could me merged? Thanks for the help! |
@avarabyeu #820 needs some work. Would you like to take a look at it? |
#820 is finally merged! |
Now there is a badge, which represents count of contributors of specified Repo
e.g.
https://img.shields.io/github/contributors/cdnjs/cdnjs.svg
Please create the badge which will count all unique contributors for specified organization.
kind of
https://img.shields.io/github/contributors/cdnjs.svg
The text was updated successfully, but these errors were encountered: