Skip to content

Latest commit

 

History

History
214 lines (90 loc) · 3 KB

GithubActionReporter.md

File metadata and controls

214 lines (90 loc) · 3 KB

GithubActionReporter

Utility class for Github actions.

  • Full name: \Symfony\Component\Console\CI\GithubActionReporter

Constants

Constant Visibility Type Value
ESCAPED_DATA private ['%' => '%25', "\r" => '%0D', "\n" => '%0A']
ESCAPED_PROPERTIES private ['%' => '%25', "\r" => '%0D', "\n" => '%0A', ':' => '%3A', ',' => '%2C']

Properties

output

private $output

Methods

__construct

public __construct(\Symfony\Component\Console\Output\OutputInterface $output): mixed

Parameters:

Parameter Type Description
$output \Symfony\Component\Console\Output\OutputInterface

isGithubActionEnvironment

public static isGithubActionEnvironment(): bool
  • This method is static.

error

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:


warning

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:


debug

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:


log

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