How to make dynamic github badges, that is, images in README which change state?

风格不统一 提交于 2019-12-23 14:57:50

问题


How do you add a "badge" in GitHub README so that it is dynamic? By "badge", I mean

The question is even if one puts a URL in GitHub README which maps to a server returning an svg/png, how does it update automatically on GitHub README page?

As an example if you visit the link , you'd see the updated status of the issue (which is closed), but my GitHub README page still shows outdated badge, that is, shows the issue being open.

What is an example server code (say in golang) which can render github badges dynamically?


回答1:


It's just an image at a URL. It's up to the server (your example looks like Jenkins) to decide what image to provide.



来源:https://stackoverflow.com/questions/28121981/how-to-make-dynamic-github-badges-that-is-images-in-readme-which-change-state

标签
易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!