gpt4 book ai didi

testing - 如何更新工作服徽章图像以反射(reflect)实际覆盖百分比?

转载 作者:行者123 更新时间:2023-12-04 16:01:30 25 4
gpt4 key购买 nike

我在自述文件和文档页面上使用 Coveralls 徽章来显示我的项目的代码覆盖率。徽章图像通常显示过时的百分比。清除浏览器的缓存会有所帮助,但这通常也会让我得到一个过时的百分比图像,尽管它可能比以前显示的徽章更新。
例如,在撰写本文时,徽章在文档页面 readthedocs.io 上显示正确的百分比,目前为 91%。 ,但我 GitHub 上的徽章 README显示 89%。
如何在 GitHub README 上手动强制更新徽章图像,即如何从 Coveralls 手动拉/强制更新的图像显示正确的百分比?

最佳答案

清除浏览器缓存对我不起作用。
answer on GitHub帮助:

I was able to fix this issue on my repo by purging GitHub's cached copy of the badge:

$ curl -X PURGE https://camo.githubusercontent.com/4d04abe0044d94fefcf9af2133223....
More detailed info is available here - https://help.github.com/en/articles/about-anonymized-image-urls

Hopefully this saves someone else the frustration I just went through :)

关于testing - 如何更新工作服徽章图像以反射(reflect)实际覆盖百分比?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/50355516/

25 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com