Warning: file_get_contents(/data/phpspider/zhask/data//catemap/2/github/3.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
是否可以在GitHub上为私人回购提供CI徽章?_Github_Continuous Integration_Circleci - Fatal编程技术网

是否可以在GitHub上为私人回购提供CI徽章?

是否可以在GitHub上为私人回购提供CI徽章?,github,continuous-integration,circleci,Github,Continuous Integration,Circleci,我有一个使用CircleCI的私有存储库。我可以在README.md中制作一个徽章,以反映通过/失败的测试,例如: <img src="https://circleci.com/gh/mikemaccana/someapp.svg?style=shield"/> (降价同样有效) 然而,在github.com上发布的页面上,github似乎将此URL转换为以下内容: <img src="https://circleci.com/gh/mike

我有一个使用CircleCI的私有存储库。我可以在
README.md
中制作一个徽章,以反映通过/失败的测试,例如:

<img src="https://circleci.com/gh/mikemaccana/someapp.svg?style=shield"/>

(降价同样有效)

然而,在github.com上发布的页面上,github似乎将此URL转换为以下内容:

<img src="https://circleci.com/gh/mikemaccana/someapp.svg?style=shield"/>
https://camo.githubusercontent.com/verylongstringofcharacters

私人回购是否可能有CI状态徽章?


如果这是一个解决方案,我可以更改Circle权限以公开测试状态。

几个小时后,我找到了答案-请参阅

创建一个状态API令牌,转到项目的设置(位于右上角)>API权限,并创建一个范围为状态的令牌

将令牌包括在徽章代码中:

[![CircleCI](https://circleci.com///.svg?style=svg&circle-令牌=)]()