diff --git a/src/Changelog.php b/src/Changelog.php index ff813d7..c0fda10 100644 --- a/src/Changelog.php +++ b/src/Changelog.php @@ -48,8 +48,7 @@ public function generate(InputInterface $input, SymfonyStyle $output): int $nextVersion = $input->getOption('ver'); $autoCommit = $input->getOption('commit'); // Commit once changelog is generated $autoCommitAll = $input->getOption('commit-all'); // Commit all changes once changelog is generated - $autoTag = !$input->getOption('no-tag') && !$this->config->skipTag(); // Tag release once is committed - $autoTag = $autoTag && $this->config->skipTag() ? false : true; + $autoTag = !($input->getOption('no-tag') || $this->config->skipTag()); // Tag release once is committed $amend = $input->getOption('amend'); // Amend commit $hooks = !$input->getOption('no-verify'); // Verify git hooks $hooks = $hooks && $this->config->skipVerify() ? false : true;