diff options
author | blizzz <blizzz@arthur-schiwon.de> | 2022-06-10 13:45:21 +0300 |
---|---|---|
committer | GitHub <noreply@github.com> | 2022-06-10 13:45:21 +0300 |
commit | ef7fb4180213ccc3ba057ae91026002833819add (patch) | |
tree | b9050a3210c7a3a80ae1b8797b8509487b216968 | |
parent | 7da99bb5b3d605818dbf50bb6fdef822ef94db78 (diff) | |
parent | 88e5e67f54419f9be3a830f1ff6aa73d653d9642 (diff) |
Merge pull request #47 from nextcloud/changelog_diganostic_verbose_only
show diagnostic messages only in verbose mode
-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 672556d..8adfb2a 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>'); |