mirror of
https://github.com/danog/psalm.git
synced 2025-01-22 05:41:20 +01:00
Add issue link to GitHub Actions report (#5759)
If an issue link is available, include it in the annotations on GitHub.
This commit is contained in:
parent
55079e92fe
commit
264c454ad0
@ -11,13 +11,14 @@ class GithubActionsReport extends Report
|
||||
{
|
||||
$output = '';
|
||||
foreach ($this->issues_data as $issue_data) {
|
||||
$issue_reference = $issue_data->link ? ' (see ' . $issue_data->link . ')' : '';
|
||||
$output .= sprintf(
|
||||
'::%s file=%s,line=%s,col=%s::%s',
|
||||
($issue_data->severity === Config::REPORT_ERROR ? 'error' : 'warning'),
|
||||
$issue_data->file_name,
|
||||
$issue_data->line_from,
|
||||
$issue_data->column_from,
|
||||
$issue_data->message
|
||||
$issue_data->message . $issue_reference
|
||||
) . "\n";
|
||||
}
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user