Skip to content
代码片段 群组 项目
提交 b8f28628 编辑于 作者: Rémy Coutable's avatar Rémy Coutable
浏览文件

Merge branch 'fix/remove-deprecated-ci-helper' into 'master'

Remove deprecated CI badge helper

Closes #13446

See merge request !3977
No related branches found
No related tags found
无相关合并请求
module CiBadgeHelper
def markdown_badge_code(project, ref)
url = status_ci_project_url(project, ref: ref, format: 'png')
link = namespace_project_commits_path(project.namespace, project, ref)
"[![build status](#{url})](#{link})"
end
def html_badge_code(project, ref)
url = status_ci_project_url(project, ref: ref, format: 'png')
link = namespace_project_commits_path(project.namespace, project, ref)
"<a href='#{link}'><img src='#{url}' /></a>"
end
end
0% 加载中 .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册