From 3984427f44132ea15fd018d12c9a3940d7d87f3e Mon Sep 17 00:00:00 2001 From: Dag Date: Wed, 3 Aug 2022 17:05:13 +0200 Subject: [PATCH] feat: include os and php version in github issue body (#2948) --- actions/DisplayAction.php | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/actions/DisplayAction.php b/actions/DisplayAction.php index 005333f2..c2f536d1 100644 --- a/actions/DisplayAction.php +++ b/actions/DisplayAction.php @@ -230,11 +230,13 @@ class DisplayAction implements ActionInterface 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()), '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, implode("\n", create_sane_stacktrace($e)), $_SERVER['QUERY_STRING'] ?? '', Configuration::getVersion(), + PHP_OS_FAMILY, + phpversion() ?: 'Unknown' ), 'labels' => 'Bridge-Broken', 'assignee' => $bridge->getMaintainer(),