Skip to content

Req: Path parameter for GitHub commits badge #136

Description

@Eight-P

Category

New query parameter / customization

What would you like to see?

I'd like to request a parameter for the GitHub commits and last-commit badge to point them at a specific file or directory.
It would be especially useful for monorepos.

Proposed URL / query param format

I don't have an opinion on the format. Whatever works best, I guess:
/{owner}/{repo}/{branch}/{path}.svg
or
/{owner}/{repo}/{branch}.svg?path={path}

Additional context

Similar to the path param from e.g.:
https://shields.io/badges/git-hub-last-commit

Metadata

Metadata

Assignees

No one assigned

    Labels

    featureNew feature or enhancement

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions