Skip to content

Commit

Permalink
Also check Bitbucket URLs with tags with leading "v"
Browse files Browse the repository at this point in the history
  • Loading branch information
fthomas committed Aug 13, 2019
1 parent 9116309 commit ebb622e
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 1 deletion.
Expand Up @@ -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
}
Expand Down
Expand Up @@ -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"
)

Expand Down

0 comments on commit ebb622e

Please sign in to comment.