anuraghazra / github-readme-stats

:zap: Dynamically generated stats for your github readmes
https://github-readme-stats.vercel.app
MIT License
66.43k stars 21.53k forks source link

GitHub Infer Colourscheme #3735

Open juliansommer opened 2 months ago

juliansommer commented 2 months ago

Describe the bug

While using code from the GitHub example on inferring colour scheme to display different images, it would miss the 2nd one eg hide=contribs,issues. Sometimes it would randomly work and othertimes it wouldn't. I fixed it by url encoding the commas in my links. Its a weird issue as going to the link itself in a tab produced the correct image, but viewing it on my GitHub README would skip the 2nd input. This was not an issue when using the markdown theme like this (but I needed to centre it so had to use the other one). [![Anurag's GitHub stats-Dark](https://github-readme-stats.vercel.app/api?username=anuraghazra&show_icons=true&theme=dark#gh-dark-mode-only)](https://github.com/anuraghazra/github-readme-stats#gh-dark-mode-only) [![Anurag's GitHub stats-Light](https://github-readme-stats.vercel.app/api?username=anuraghazra&show_icons=true&theme=default#gh-light-mode-only)](https://github.com/anuraghazra/github-readme-stats#gh-light-mode-only)

Expected behavior

The image displayed on the GitHub README is the same as the image displayed by going to the link in the browser. In the Images below the README should be hiding issues and contribs.

Here's one of the commits. You can see the &count_private flag is not being registered because GitHub is stopping the link at the comma.

Screenshots / Live demo link

On GitHub README On GitHub README On Webpage On Webpage

What to do

just add a note to the README that commas should be url encoded