Skip to content

Commit

Permalink
Fix NextRelease for major
Browse files Browse the repository at this point in the history
  • Loading branch information
VincentLanglet committed May 10, 2021
1 parent 0c82f44 commit 90913eb
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions src/Domain/Value/NextRelease.php
Original file line number Diff line number Diff line change
Expand Up @@ -195,6 +195,10 @@ public function stability(): Stability
return $pr->stability()->toString();
}, $this->pullRequests);

if (\in_array(Stability::major()->toString(), $stabilities, true)) {
return Stability::major();
}

if (\in_array(Stability::minor()->toString(), $stabilities, true)) {
return Stability::minor();
}
Expand Down

0 comments on commit 90913eb

Please sign in to comment.