diff --git a/src/Action/DetermineNextRelease.php b/src/Action/DetermineNextRelease.php index b2ddfdfce..c3538f220 100644 --- a/src/Action/DetermineNextRelease.php +++ b/src/Action/DetermineNextRelease.php @@ -54,7 +54,7 @@ public function __invoke(Project $project, Branch $branch): NextRelease $repository = $project->repository(); try { - $currentRelease = $this->releases->branchLatest($repository, $branch); + $currentRelease = $this->releases->latestForBranch($repository, $branch); } catch (LatestReleaseNotFound $e) { throw CannotDetermineNextRelease::forBranch( $project, diff --git a/src/Github/Api/Releases.php b/src/Github/Api/Releases.php index 6c27df588..47a36ee0a 100644 --- a/src/Github/Api/Releases.php +++ b/src/Github/Api/Releases.php @@ -49,7 +49,7 @@ public function latest(Repository $repository): Release return Release::fromResponse($response); } - public function branchLatest(Repository $repository, Branch $branch): Release + public function latestForBranch(Repository $repository, Branch $branch): Release { try { $response = $this->github->repo()->releases()->all(