mirror of
https://github.com/RSS-Bridge/rss-bridge.git
synced 2025-04-10 08:58:50 +00:00
fix: include git tag in version (#3000)
Also include os and php version in github issue template.
This commit is contained in:
parent
693d6edfbf
commit
5e09a14acc
@ -194,7 +194,7 @@ final class Configuration
|
|||||||
if (isset($parts[3])) {
|
if (isset($parts[3])) {
|
||||||
$branchName = $parts[3];
|
$branchName = $parts[3];
|
||||||
if (file_exists($revisionHashFile)) {
|
if (file_exists($revisionHashFile)) {
|
||||||
return 'git.' . $branchName . '.' . substr(file_get_contents($revisionHashFile), 0, 7);
|
return sprintf('%s (git.%s.%s)', self::VERSION, $branchName, substr(file_get_contents($revisionHashFile), 0, 7));
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
@ -18,7 +18,13 @@
|
|||||||
Query string: <?= e($_SERVER['QUERY_STRING'] ?? '') ?>
|
Query string: <?= e($_SERVER['QUERY_STRING'] ?? '') ?>
|
||||||
</p>
|
</p>
|
||||||
<p>
|
<p>
|
||||||
Version: <?= e(Configuration::getVersion()) ?>
|
Version: <?= raw(Configuration::getVersion()) ?>
|
||||||
|
</p>
|
||||||
|
<p>
|
||||||
|
OS: <?= raw(PHP_OS_FAMILY) ?>
|
||||||
|
</p>
|
||||||
|
<p>
|
||||||
|
PHP version: <?= raw(phpversion() ?: 'Unknown'()) ?>
|
||||||
</p>
|
</p>
|
||||||
|
|
||||||
<div class="advice">
|
<div class="advice">
|
||||||
|
Loading…
Reference in New Issue
Block a user