Skip to content

Commit 886c6ad

Browse files
authored
Github output must be on one line (#16)
1 parent 7e4bb9c commit 886c6ad

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/Command/CheckDocsCommand.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -130,7 +130,7 @@ protected function execute(InputInterface $input, OutputInterface $output): int
130130
$this->io->error(sprintf('Build completed with %s errors', $issueCount));
131131
} elseif ('github' === $format) {
132132
foreach ($issues as $issue) {
133-
$this->io->writeln(sprintf('::error file=%s.rst,line=%s::[%s] %s', $issue->getFile(), $issue->getLine(), $issue->getType(), $issue->getText()));
133+
$this->io->writeln(sprintf('::error file=%s.rst,line=%s::[%s] %s', $issue->getFile(), $issue->getLine(), $issue->getType(), str_replace(PHP_EOL, ' ', $issue->getText())));
134134
}
135135
}
136136

0 commit comments

Comments
 (0)