Utility class for Github actions.
- Full name:
\Symfony\Component\Console\CI\GithubActionReporter
Constant | Visibility | Type | Value |
---|---|---|---|
ESCAPED_DATA |
private | ['%' => '%25', "\r" => '%0D', "\n" => '%0A'] | |
ESCAPED_PROPERTIES |
private | ['%' => '%25', "\r" => '%0D', "\n" => '%0A', ':' => '%3A', ',' => '%2C'] |
private $output
public __construct(\Symfony\Component\Console\Output\OutputInterface $output): mixed
Parameters:
Parameter | Type | Description |
---|---|---|
$output |
\Symfony\Component\Console\Output\OutputInterface |
public static isGithubActionEnvironment(): bool
- This method is static.
Output an error using the Github annotations format.
public error(string $message, string $file = null, int $line = null, int $col = null): void
Parameters:
Parameter | Type | Description |
---|---|---|
$message |
string | |
$file |
string | |
$line |
int | |
$col |
int |
See Also:
Output a warning using the Github annotations format.
public warning(string $message, string $file = null, int $line = null, int $col = null): void
Parameters:
Parameter | Type | Description |
---|---|---|
$message |
string | |
$file |
string | |
$line |
int | |
$col |
int |
See Also:
Output a debug log using the Github annotations format.
public debug(string $message, string $file = null, int $line = null, int $col = null): void
Parameters:
Parameter | Type | Description |
---|---|---|
$message |
string | |
$file |
string | |
$line |
int | |
$col |
int |
See Also:
private log(string $type, string $message, string $file = null, int $line = null, int $col = null): void
Parameters:
Parameter | Type | Description |
---|---|---|
$type |
string | |
$message |
string | |
$file |
string | |
$line |
int | |
$col |
int |