From 0cae914fcf82af193e0ee704a7afcdea47aa41e6 Mon Sep 17 00:00:00 2001 From: devilsautumn Date: Wed, 18 Sep 2024 13:40:16 +0530 Subject: [PATCH 1/2] fixed latest release check --- backend/src/zango/cli/update_apps.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/backend/src/zango/cli/update_apps.py b/backend/src/zango/cli/update_apps.py index 79d21fca..d3d03875 100644 --- a/backend/src/zango/cli/update_apps.py +++ b/backend/src/zango/cli/update_apps.py @@ -313,9 +313,9 @@ def create_release(tenant_name, app_settings, app_directory, git_mode): latest_commit_hash = repo.head.commit.hexsha last_release = get_last_release() - if not last_release or is_version_greater( + if not last_release or (last_release and is_version_greater( current_version, last_release.version - ): + )): release_notes = extract_release_notes( os.path.join(app_directory, "CHANGELOG.md"), current_version ) From fed127040eff1b502bc52f88f3c971a86fab75e7 Mon Sep 17 00:00:00 2001 From: devilsautumn Date: Wed, 18 Sep 2024 13:41:51 +0530 Subject: [PATCH 2/2] formatting and linting --- backend/src/zango/cli/update_apps.py | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/backend/src/zango/cli/update_apps.py b/backend/src/zango/cli/update_apps.py index d3d03875..f3e154be 100644 --- a/backend/src/zango/cli/update_apps.py +++ b/backend/src/zango/cli/update_apps.py @@ -313,9 +313,10 @@ def create_release(tenant_name, app_settings, app_directory, git_mode): latest_commit_hash = repo.head.commit.hexsha last_release = get_last_release() - if not last_release or (last_release and is_version_greater( - current_version, last_release.version - )): + if not last_release or ( + last_release + and is_version_greater(current_version, last_release.version) + ): release_notes = extract_release_notes( os.path.join(app_directory, "CHANGELOG.md"), current_version )