Change getting next release version

[PREMIUM-147]
This commit is contained in:
Jan Lysý
2020-10-16 10:46:33 +02:00
committed by Pavel Dohnal
parent 713cb18d81
commit 709ccf3857
3 changed files with 32 additions and 2 deletions

View File

@@ -58,6 +58,11 @@ class ReleaseVersionController {
return $nextVersion;
}
public function getPreparedVersion(): string {
$version = $this->jira->getPreparedReleaseVersion();
return $version['name'];
}
private function getUnreleasedDoneIssues($project = null) {
$project = $project ?: $this->project;
$jql = "project = $project AND status = Done AND (fixVersion = EMPTY OR fixVersion IN unreleasedVersions()) AND updated >= -52w";