Commit 57894942 authored by Francesco Witz's avatar Francesco Witz
Browse files

fix: wrong access to last version in chlog.json

parent 19225ce8
......@@ -15,7 +15,6 @@ def generate_changelog(project_path: str):
"""
Method used to generate a changelog based on git commit
"""
print(project_path)
check_update() # Checking if an update is available
check_chlog(project_path=project_path) # Checking if the config file is present on the project directory
print("Beginning changelog generation... 🛠")
......@@ -27,7 +26,7 @@ def generate_changelog(project_path: str):
# Get the last version in chlog.json to get the appropriate commit
with open("chlog.json", "r") as chlog_file:
chlog = json.load(chlog_file)
version = chlog["last-version"]
version = chlog["last"]
commits = get_formatted_commits(version)
# Check if changelog file exist
if not os.path.exists("CHANGELOG.md"):
......
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