Currently disable keyword filtering

This commit is contained in:
Marcel Kapfer 2021-05-26 20:46:29 +02:00
parent 946874ee7b
commit a194f21d8a
Signed by: mmk2410
GPG key ID: CADE6F0C09F21B09

View file

@ -22,8 +22,8 @@ import subprocess
def main():
# TODO: Add user defined keywords to the list.
ignored_keywords = ["pre", "rc", "beta", "alpha", "dev"]
# # TODO: Add user defined keywords to the list.
# ignored_keywords = ["pre", "rc", "beta", "alpha", "dev"]
# TODO: Add a ability for the user to customize this.
default_branch = "master"
@ -31,9 +31,9 @@ def main():
tags = subprocess.run(["git", "tag"], stdout=subprocess.PIPE)
allowedTags = {}
for tag in tags.stdout.decode('utf-8').splitlines():
# Sort out tags that contain any `ignored_keywords`
if len([ignored_keyword for ignored_keyword in ignored_keywords if ignored_keyword in tag]) != 0:
continue
# # Sort out tags that contain any `ignored_keywords`
# if len([ignored_keyword for ignored_keyword in ignored_keywords if ignored_keyword in tag]) != 0:
# continue
# Retriev the date in ISO-8061 format from git
date = subprocess.run(["git", "log", "-1", "--format='%aI'", tag], stdout=subprocess.PIPE)
# Strip away the encloding quotes as well as some whitespace