1
0
mirror of https://github.com/RSS-Bridge/rss-bridge.git synced 2025-07-28 20:30:25 +02:00

fix: include git tag in version (#3000)

Also include os and php version in github issue template.
This commit is contained in:
Dag
2022-09-04 07:21:57 +02:00
committed by GitHub
parent 693d6edfbf
commit 5e09a14acc
3 changed files with 9 additions and 3 deletions

View File

@@ -194,7 +194,7 @@ final class Configuration
if (isset($parts[3])) {
$branchName = $parts[3];
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));
}
}
}