Skip to content

Commit

Permalink
Revert "Issue bot - let all comments about PHP-Parser 5.2 through"
Browse files Browse the repository at this point in the history
This reverts commit 10de833.
  • Loading branch information
ondrejmirtes committed Sep 15, 2024
1 parent 10de833 commit 3d7ed3f
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions issue-bot/src/Console/EvaluateCommand.php
Original file line number Diff line number Diff line change
Expand Up @@ -158,6 +158,10 @@ protected function execute(InputInterface $input, OutputInterface $output): int

$postComments = (bool) $input->getOption('post-comments');
if ($postComments) {
if (count($toPost) > 20) {
$output->writeln('Too many comments to post, something is probably wrong.');
return 1;
}
foreach ($toPost as ['issue' => $issue, 'hash' => $hash, 'users' => $users, 'diff' => $diff, 'details' => $details]) {
$text = sprintf(
"%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```",
Expand Down

0 comments on commit 3d7ed3f

Please sign in to comment.