Skip to content

Commit e5ad342

Browse files
committed
Revert "Issue bot - let all comments about list type through"
This reverts commit 1d517de.
1 parent 1d517de commit e5ad342

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

issue-bot/src/Console/EvaluateCommand.php

+4
Original file line numberDiff line numberDiff line change
@@ -158,6 +158,10 @@ protected function execute(InputInterface $input, OutputInterface $output): int
158158

159159
$postComments = (bool) $input->getOption('post-comments');
160160
if ($postComments) {
161+
if (count($toPost) > 20) {
162+
$output->writeln('Too many comments to post, something is probably wrong.');
163+
return 1;
164+
}
161165
foreach ($toPost as ['issue' => $issue, 'hash' => $hash, 'users' => $users, 'diff' => $diff, 'details' => $details]) {
162166
$text = sprintf(
163167
"%s After [the latest push in %s](https://github.com/phpstan/phpstan-src/compare/%s...%s), PHPStan now reports different result with your [code snippet](https://phpstan.org/r/%s):\n\n```diff\n%s```",

0 commit comments

Comments
 (0)