如何制作动态github徽章,即README中的哪些图像会改变状态? [英] How to make dynamic github badges, that is, images in README which change state?
问题描述
如何在GitHub自述文件中添加一个徽章以便它是动态的?通过徽章,我的意思是
问题是,即使有人在GitHub自述文件中加入了一个映射到返回svg / png的服务器的URL,它如何在GitHub自述文件页面自动更新?
例如,如果您访问链接
,您会看到问题的更新状态(已关闭),但我的GitHub 自述页
什么是可以动态呈现github徽章的示例服务器代码(用golang表示)?
这只是一个URL上的图片。这取决于服务器(你的例子看起来像詹金斯)决定提供什么图片。
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?
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.
这篇关于如何制作动态github徽章,即README中的哪些图像会改变状态?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!