Skip to content
Permalink
Browse files

Also check Bitbucket URLs with tags with leading "v"

  • Loading branch information...
fthomas committed Aug 13, 2019
1 parent 9116309 commit ebb622e78807b3114f93752d20b8afb5dbe17a91
@@ -57,7 +57,10 @@ package object vcs {
s"${canonicalized}/compare/${from}...${to}"
)
else if (repoUrl.startsWith("https://bitbucket.org/"))
List(s"${canonicalized}/compare/${to}..${from}#diff")
List(
s"${canonicalized}/compare/v${to}..v${from}#diff",
s"${canonicalized}/compare/${to}..${from}#diff"
)
else
List.empty
}
@@ -38,6 +38,7 @@ class VCSPackageTest extends FunSuite with Matchers {
"https://gitlab.com/foo/bar/compare/1.2.0...1.2.3"
)
possibleCompareUrls("https://bitbucket.org/foo/bar", update) shouldBe List(
"https://bitbucket.org/foo/bar/compare/v1.2.3..v1.2.0#diff",
"https://bitbucket.org/foo/bar/compare/1.2.3..1.2.0#diff"
)

0 comments on commit ebb622e

Please sign in to comment.
You can’t perform that action at this time.