mirror of
https://github.com/RSS-Bridge/rss-bridge.git
synced 2025-04-09 16:38:50 +00:00
feat: include os and php version in github issue body (#2948)
This commit is contained in:
parent
ecb486794b
commit
3984427f44
@ -230,11 +230,13 @@ class DisplayAction implements ActionInterface
|
|||||||
return sprintf('https://github.com/RSS-Bridge/rss-bridge/issues/new?%s', http_build_query([
|
return sprintf('https://github.com/RSS-Bridge/rss-bridge/issues/new?%s', http_build_query([
|
||||||
'title' => sprintf('%s failed with error %s', $bridge->getName(), $e->getCode()),
|
'title' => sprintf('%s failed with error %s', $bridge->getName(), $e->getCode()),
|
||||||
'body' => sprintf(
|
'body' => sprintf(
|
||||||
"```\n%s\n\n%s\n\nQuery string:%s\nVersion:%s\n```",
|
"```\n%s\n\n%s\n\nQuery string:%s\nVersion:%s\nOs:%s\nPHP version:%s\n```",
|
||||||
$message,
|
$message,
|
||||||
implode("\n", create_sane_stacktrace($e)),
|
implode("\n", create_sane_stacktrace($e)),
|
||||||
$_SERVER['QUERY_STRING'] ?? '',
|
$_SERVER['QUERY_STRING'] ?? '',
|
||||||
Configuration::getVersion(),
|
Configuration::getVersion(),
|
||||||
|
PHP_OS_FAMILY,
|
||||||
|
phpversion() ?: 'Unknown'
|
||||||
),
|
),
|
||||||
'labels' => 'Bridge-Broken',
|
'labels' => 'Bridge-Broken',
|
||||||
'assignee' => $bridge->getMaintainer(),
|
'assignee' => $bridge->getMaintainer(),
|
||||||
|
Loading…
Reference in New Issue
Block a user