Skip to content

GitHub file size badge doesn't work for some files#10548

Description

@chris48s

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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugBugs in badges and the frontendservice-badgeNew or updated service badge

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions