diff --git a/latest-tags.py b/latest-tags.py index 02fc10b..38a2c2d 100755 --- a/latest-tags.py +++ b/latest-tags.py @@ -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