GitHub file size badge doesn't work for some files #10548
Labels
bug
Bugs in badges and the frontend
service-badge
Accepted and actionable changes, features, and bugs
Are you experiencing an issue with...
shields.io
🐞 Description
This badge works for most files
https://img.shields.io/github/size/badges/shields/server.js
but there are some that cause a problem
https://img.shields.io/github/size/badges/shields/package.json
The reason this fails is because this causes us to look for a file called "package" and use json output format, rather than look for a file called "package.json"
🔗 Link to the badge
https://img.shields.io/github/size/badges/shields/package.json
💡 Possible Solution
We might need to switch
path
from a path param to a query param to solve this.The text was updated successfully, but these errors were encountered: