Skip to content
This repository has been archived by the owner on Apr 22, 2020. It is now read-only.

Fixes the codecov badge #1175

Merged
merged 2 commits into from
Dec 13, 2018
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 3 additions & 3 deletions core/src/main/scala/sbtorgpolicies/templates/badges.scala
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@ object badges {

case class BadgeIcon(title: String, icon: String, url: String)

type BadgeBuilder = (BadgeInformation) => Badge
type BadgeBuilder = BadgeInformation => Badge

abstract class Badge(info: BadgeInformation) {
def badgeIcon: Option[BadgeIcon]
Expand All @@ -50,8 +50,8 @@ object badges {
override def badgeIcon: Option[BadgeIcon] =
BadgeIcon(
title = "codecov.io",
icon = s"http://codecov.io/github/${info.owner}/${info.repo}/coverage.svg?branch=${info.branch}",
url = s"http://codecov.io/github/${info.owner}/${info.repo}?branch=${info.branch}"
icon = s"http://codecov.io/gh/${info.owner}/${info.repo}/branch/master/graph/badge.svg",
url = s"http://codecov.io/gh/${info.owner}/${info.repo}"
).some
}

Expand Down