Create github release

[MAILPOET-2004]
This commit is contained in:
Pavel Dohnal
2019-05-23 12:50:10 +02:00
committed by M. Shull
parent ca175c81fb
commit b47484ee3c
2 changed files with 42 additions and 0 deletions

View File

@@ -539,6 +539,9 @@ class RoboFile extends \Robo\Tasks {
->addCode(function () use ($version) {
return $this->releaseChangelogWrite($version);
})
->addCode(function () use ($version) {
$this->releaseCreatePullRequest($version);
})
->run();
}
@@ -595,6 +598,18 @@ class RoboFile extends \Robo\Tasks {
->run();
}
public function releaseCreatePullRequest($version) {
$this->taskGitStack()
->stopOnFail()
->add('-A')
->commit('Release ' . $version)
->tag($version)
->exec('git push --set-upstream git@github.com:mailpoet/mailpoet.git release --follow-tags')
->run();
$this->createGitHubController()
->createReleasePullRequest($version);
}
public function releasePublish($version = null) {
$version = $this->releaseVersionGetNext($version);
return $this->collectionBuilder()