From 3fbc47ecaa482359b3219ce73efcc446450e686b Mon Sep 17 00:00:00 2001 From: core23 Date: Sun, 14 Feb 2021 10:34:07 +0100 Subject: [PATCH 1/2] Show command arguments --- src/Command/MergeCommand.php | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/Command/MergeCommand.php b/src/Command/MergeCommand.php index b7400ca..814fc4b 100644 --- a/src/Command/MergeCommand.php +++ b/src/Command/MergeCommand.php @@ -66,7 +66,8 @@ protected function execute(InputInterface $input, OutputInterface $output): int $io = new SymfonyStyle($input, $output); $io->title(sprintf( - 'Merge pull requests with "%s" label (ignoring label: %s)', + 'Scanning "%s" for "%s" label (ignoring label: %s)', + $config->repository(), $config->label(), $config->ignoreLabel() )); From d09470aee01def1f0a66dadd8c9b24cffc5cad5c Mon Sep 17 00:00:00 2001 From: core23 Date: Sun, 14 Feb 2021 10:36:26 +0100 Subject: [PATCH 2/2] Show info if a PR was skipped --- src/Command/MergeCommand.php | 10 ++-------- 1 file changed, 2 insertions(+), 8 deletions(-) diff --git a/src/Command/MergeCommand.php b/src/Command/MergeCommand.php index 814fc4b..1aaf543 100644 --- a/src/Command/MergeCommand.php +++ b/src/Command/MergeCommand.php @@ -85,14 +85,8 @@ protected function execute(InputInterface $input, OutputInterface $output): int foreach ($pullRequests as $pullRequest) { if ($pullRequest->updatedWithinTheLast60Seconds()) { - if ($io->isVerbose()) { - $io->info('Skip very new PRs to ignore workflow delay'); - } - - continue; - } - - if (true === $pullRequest->isMergeable() && $pullRequest->isCleanBuild()) { + $io->write('[SKIPPED] '); + } elseif (true === $pullRequest->isMergeable() && $pullRequest->isCleanBuild()) { if ($config->isDryRun()) { $io->write('[READY] '); } else {