Currently disable keyword filtering
This commit is contained in:
parent
946874ee7b
commit
a194f21d8a
1 changed files with 5 additions and 5 deletions
|
@ -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
|
||||
|
|
Reference in a new issue