Add command to publish release on JIRA

[MAILPOET-1884]
This commit is contained in:
Jan Jakeš
2019-04-19 12:29:24 +02:00
committed by Rostislav Wolný
parent f63733abc5
commit 8b4bf19bdd
2 changed files with 17 additions and 0 deletions

View File

@ -662,6 +662,13 @@ class RoboFile extends \Robo\Tasks {
$slack_notifier->notify($version['name'], $changelog[1], $version['id']);
}
public function releasePublishJira($version = null) {
$version = $this->nextReleaseVersion($version);
$jira_controller = $this->createJiraController();
$jira_version = $jira_controller->releaseVersion($version);
$this->say("JIRA version '$jira_version[name]' was released.");
}
protected function validateVersion($version) {
if (!\MailPoetTasks\Release\VersionHelper::validateVersion($version)) {
$this->yell('Incorrect version format', 40, 'red');