nvchecker/nvchecker_source/mercurial.py

11 lines
282 B
Python
Raw Normal View History

# MIT licensed
# Copyright (c) 2020 Felix Yan <felixonmars@archlinux.org>, et al.
async def get_version(name, conf, *, cache, **kwargs):
2024-03-09 10:45:19 +00:00
url = conf['mercurial'] + '/json-tags'
data = await cache.get_json(url)
version = [tag['tag'] for tag in data['tags']]
return version