Commit 3a8a7618 authored by Francesco Witz's avatar Francesco Witz
Browse files

fix: different commit scrapping for checking and generation

parent a102091e
......@@ -216,7 +216,10 @@ def check_formating(project_path: str, before_gen: bool):
os.chdir(project_path)
with open('chlog.json', 'r') as file:
chlog = json.load(file)
version: str = chlog['version']
if before_gen:
version: str = chlog['last']
else:
version: str = chlog['version']
commits: list[list[str]] = get_raw_commits(version)
format_pattern = re.compile("[a-z]+:(\s|\S)(?:[a-z]+(\s|\S))+")
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment