diff --git a/src/Url/GithubGenerator.php b/src/Url/GithubGenerator.php index c111f78..fabec19 100644 --- a/src/Url/GithubGenerator.php +++ b/src/Url/GithubGenerator.php @@ -20,7 +20,7 @@ public function getCompareUrl(PackageInterface $initialPackage, PackageInterface $targetMaintainer = $this->getUser($targetPackage); $targetVersion = ($baseMaintainer !== $targetMaintainer ? $targetMaintainer.':' : '').$this->getCompareRef($targetPackage); - return sprintf('%s/compare/%s..%s', $baseUrl, $this->getCompareRef($initialPackage), $targetVersion); + return sprintf('%s/compare/%s...%s', $baseUrl, $this->getCompareRef($initialPackage), $targetVersion); } /** diff --git a/tests/Command/DiffCommandTest.php b/tests/Command/DiffCommandTest.php index a66ab29..55032a7 100644 --- a/tests/Command/DiffCommandTest.php +++ b/tests/Command/DiffCommandTest.php @@ -140,15 +140,15 @@ public function outputDataProvider() ), 'Markdown with URLs' => array( << array( << array( $this->getPackageWithSource('acme/package', '3.12.0', 'https://github.com/acme/package.git'), $this->getPackageWithSource('acme/package', '3.12.1', 'https://github.com/acme/package.git'), - 'https://github.com/acme/package/compare/3.12.0..3.12.1', + 'https://github.com/acme/package/compare/3.12.0...3.12.1', ), 'without .git' => array( $this->getPackageWithSource('acme/package', '3.12.0', 'https://github.com/acme/package'), $this->getPackageWithSource('acme/package', '3.12.1', 'https://github.com/acme/package'), - 'https://github.com/acme/package/compare/3.12.0..3.12.1', + 'https://github.com/acme/package/compare/3.12.0...3.12.1', ), 'dev versions' => array( $this->getPackageWithSource('acme/package', 'dev-master', 'https://github.com/acme/package.git', 'd46283075d76ed244f7825b378eeb1cee246af73'), $this->getPackageWithSource('acme/package', 'dev-master', 'https://github.com/acme/package.git', '9b860214d58c48b5cbe99bdb17914d0eb723c9cd'), - 'https://github.com/acme/package/compare/d462830..9b86021', + 'https://github.com/acme/package/compare/d462830...9b86021', ), 'invalid or short reference' => array( $this->getPackageWithSource('acme/package', 'dev-master', 'https://github.com/acme/package.git', 'd462830'), $this->getPackageWithSource('acme/package', 'dev-master', 'https://github.com/acme/package.git', '1'), - 'https://github.com/acme/package/compare/d462830..1', + 'https://github.com/acme/package/compare/d462830...1', ), 'compare with base fork' => array( $this->getPackageWithSource('acme/package', '3.12.0', 'https://github.com/IonBazan/package.git'), $this->getPackageWithSource('acme/package', '3.12.1', 'https://github.com/acme/package.git'), - 'https://github.com/IonBazan/package/compare/3.12.0..acme:3.12.1', + 'https://github.com/IonBazan/package/compare/3.12.0...acme:3.12.1', ), 'compare with head fork' => array( $this->getPackageWithSource('acme/package', '3.12.0', 'https://github.com/acme/package.git'), $this->getPackageWithSource('acme/package', '3.12.1', 'https://github.com/IonBazan/package.git'), - 'https://github.com/acme/package/compare/3.12.0..IonBazan:3.12.1', + 'https://github.com/acme/package/compare/3.12.0...IonBazan:3.12.1', ), 'compare with different repository provider' => array( $this->getPackageWithSource('acme/package', '3.12.0', 'https://github.com/acme/package.git'),