Skip to content
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

Are you have any example of Dynamic badge? #1370

Closed
kamontat opened this issue Dec 13, 2017 · 6 comments
Closed

Are you have any example of Dynamic badge? #1370

kamontat opened this issue Dec 13, 2017 · 6 comments
Labels
question Support questions, usage questions, unconfirmed bugs, discussions, ideas

Comments

@kamontat
Copy link
Contributor

I have found that <shield.io> has dynamic badge, but I don't know how to use it.

@MartinGonzalez
Copy link

I would like to know it too.
I'm trying to add a version badge, and the version is inside a .json.

@tooomm
Copy link
Contributor

tooomm commented Dec 13, 2017

I highly advice you to read the PR implementing this feature (#820), it helped me to understand it.

I really think there should be a explanation and link to that JSONpath expression evaluator!

@MartinGonzalez
Copy link

@tooomm

Just to understand how badges work.
When we call for example a build pipeline using travis: https://img.shields.io/travis/USER/REPO.svg.
If i put my user and repo, how does it know which badge show?

A dynamic badge, when i put $.version, generates a new .svg or update someone?

Sorry about being a beginner but i would really like to learn to make my readme files more descriptive.

@tooomm
Copy link
Contributor

tooomm commented Dec 14, 2017

If i put my user and repo, how does it know which badge show?

Because of the services name (travis) in the link: https://img.shields.io/travis/USER/REPO.svg. :)
Other badges look like this "https://img.shields.io/appveyor/ci/USER/REPO.svg".
The travis one is the only one with this user/repo declaration in the example list, all others use real data there... that might confuses you and should get changed, yes.

A dynamic badge, when i put $.version, generates a new .svg or update someone?

I don't know what you mean exactly. But a dynamic badge is a dedicated badge with its own .svg

@MartinGonzalez
Copy link

@tooomm Now i understood, it takes repository metadata. I tried with a gitlab project with it private token and worked.

Thanks!

@paulmelnikow paulmelnikow added the question Support questions, usage questions, unconfirmed bugs, discussions, ideas label Dec 20, 2017
@paulmelnikow
Copy link
Member

Let us know if you have more questions!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
question Support questions, usage questions, unconfirmed bugs, discussions, ideas
Projects
None yet
Development

No branches or pull requests

4 participants