Browse Source

Added --version support in Release/sort-changelog command

tags/2.0.14.2
SilverFire - Dmitry Naumenko 7 years ago
parent
commit
a3c5ae620a
No known key found for this signature in database
GPG Key ID: 39DD917A92B270A
  1. 4
      build/controllers/ReleaseController.php

4
build/controllers/ReleaseController.php

@ -68,6 +68,8 @@ class ReleaseController extends Controller
if ($actionID === 'release') {
$options[] = 'dryRun';
$options[] = 'version';
} elseif ($actionID === 'sort-changelog') {
$options[] = 'version';
} elseif ($actionID === 'info') {
$options[] = 'update';
}
@ -321,7 +323,7 @@ class ReleaseController extends Controller
}
$this->validateWhat($what, ['framework', 'ext'], false);
$version = array_values($this->getNextVersions($this->getCurrentVersions($what), self::PATCH))[0];
$version = $this->version ?: array_values($this->getNextVersions($this->getCurrentVersions($what), self::PATCH))[0];
$this->stdout('sorting CHANGELOG of ');
$this->stdout(reset($what), Console::BOLD);
$this->stdout(' for version ');

Loading…
Cancel
Save