in scripts/changelog.py [0:0]
def to_version(tag): if not tag: return "HEAD" if tag.prerelease: return str(tag) return "v{}".format(tag)