Skip to content

Commit

Permalink
Rename branchLatest
Browse files Browse the repository at this point in the history
  • Loading branch information
VincentLanglet committed May 10, 2021
1 parent 90913eb commit 5a957eb
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion src/Action/DetermineNextRelease.php
Original file line number Diff line number Diff line change
Expand Up @@ -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,
Expand Down
2 changes: 1 addition & 1 deletion src/Github/Api/Releases.php
Original file line number Diff line number Diff line change
Expand Up @@ -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(
Expand Down

0 comments on commit 5a957eb

Please sign in to comment.