Change logic of release next version

Premium should have the same minor version like free when is released.
Free will be released only with a patch version when premium branch
doesn't exist.
We assume that premium isn't released when branch doesn't exist.
[MAILPOET-3152]
This commit is contained in:
Jan Lysý
2020-10-07 16:52:57 +02:00
committed by Pavel Dohnal
parent 050bd93548
commit b7fde9dd93
4 changed files with 42 additions and 29 deletions

View File

@@ -75,8 +75,9 @@ class JiraController {
return reset($version['values']);
}
public function getLastReleasedVersion() {
$response = $this->httpClient->get("project/$this->project/version", [
public function getLastReleasedVersion(?string $project = null) {
$project = $project ?: $this->project;
$response = $this->httpClient->get("project/$project/version", [
'query' => [
'maxResults' => 1,
'orderBy' => '-sequence',