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