diff options
author | Arthur Schiwon <blizzz@arthur-schiwon.de> | 2022-06-09 13:41:22 +0300 |
---|---|---|
committer | Arthur Schiwon <blizzz@arthur-schiwon.de> | 2022-06-09 13:41:22 +0300 |
commit | 88e5e67f54419f9be3a830f1ff6aa73d653d9642 (patch) | |
tree | d2a3fd0e20af8a7117968263850490ab23bc53ac | |
parent | 6d26e222ae9e01e0660eee66fe82f10c776c95f7 (diff) |
show diagnostic messages only in verbose modechangelog_diganostic_verbose_only
Signed-off-by: Arthur Schiwon <blizzz@arthur-schiwon.de>
-rw-r--r-- | changelog/index.php | 12 |
1 files changed, 8 insertions, 4 deletions
diff --git a/changelog/index.php b/changelog/index.php index fc43c69..1a11305 100644 --- a/changelog/index.php +++ b/changelog/index.php @@ -129,9 +129,11 @@ class GenerateChangelogCommand extends Command $reposToIterate[] = 'gallery'; } - $output->writeln("repo: $repoName"); - $output->writeln("base: $base"); - $output->writeln("head: $head"); + if ($output->isVerbose()) { + $output->writeln("repo: $repoName"); + $output->writeln("base: $base"); + $output->writeln("head: $head"); + } $milestoneToCheck = null; $substring = 'v'; @@ -158,7 +160,9 @@ class GenerateChangelogCommand extends Command $version[2] = (string)((int)$version[2] + 1); $milestoneToCheck = join('.', $version); } - $output->writeln("Checking milestone $milestoneToCheck for pending PRs ..."); + if ($output->isVerbose()) { + $output->writeln("Checking milestone $milestoneToCheck for pending PRs ..."); + } } } else { $output->writeln('<error>No version detected - the output will not contain any pending PRs. Use a git tag starting with "v" like "v13.0.5".</error>'); |