This commit is contained in:
involution 2024-11-19 05:20:22 -05:00
parent d2408d8fd3
commit 8278d91806

View file

@ -267,6 +267,7 @@ async def get_version_real(
# Only add commit info if configured
if conf.get('use_commit_info', False):
commit_count = await get_commit_count(url, headers)
version = data[0]['commit']['committer']['date'].rstrip('Z').replace('-', '').replace(':', '').replace('T', '.')
version = f"{version}.r{commit_count}.g{data[0]['sha'][:9]}"
return RichResult(