Skip to content

Commit

Permalink
fix: skip tags and --not-tag are not working
Browse files Browse the repository at this point in the history
  • Loading branch information
Sh4dow authored and marcocesarato committed Apr 16, 2021
1 parent c84d617 commit 7f4d458
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions src/Changelog.php
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down

0 comments on commit 7f4d458

Please sign in to comment.