Check the release pull request before release

[MAILPOET-2004]
This commit is contained in:
Pavel Dohnal
2019-05-23 14:32:00 +02:00
committed by M. Shull
parent b47484ee3c
commit 32a739eba5
2 changed files with 85 additions and 0 deletions

View File

@ -613,6 +613,9 @@ class RoboFile extends \Robo\Tasks {
public function releasePublish($version = null) {
$version = $this->releaseVersionGetNext($version);
return $this->collectionBuilder()
->addCode(function () use ($version) {
return $this->releaseCheckPullRequest($version);
})
->addCode(function () {
return $this->releaseDownloadZip();
})
@ -640,6 +643,11 @@ class RoboFile extends \Robo\Tasks {
->run();
}
public function releaseCheckPullRequest($version) {
$this->createGitHubController()
->checkReleasePullRequestPassed($version);
}
public function releaseVersionGetNext($version = null) {
if (!$version) {
$version = $this->getReleaseVersionController()