Skip to content

Commit

Permalink
fix: release change log (#1179)
Browse files Browse the repository at this point in the history
  • Loading branch information
jiashenC committed Sep 21, 2023
1 parent 6e541c7 commit 8e36237
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 5 deletions.
1 change: 0 additions & 1 deletion evadb/version.py
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,5 @@
_MINOR = "3"
_REVISION = "5"


VERSION_SHORT = f"{_MAJOR}.{_MINOR}"
VERSION = f"{_MAJOR}.{_MINOR}.{_REVISION}"
8 changes: 4 additions & 4 deletions script/releasing/releaser.py
Original file line number Diff line number Diff line change
Expand Up @@ -174,15 +174,16 @@ def release_version(current_version):
run_command(f"git push origin release-{NEXT_RELEASE}")


def get_commit_id_of_latest_release():
def get_commit_id_of_latest_release(release_index=0):
# Default to the latest release.
import requests

repo = "georgia-tech-db/evadb"
url = f"https://api.github.com/repos/{repo}/releases"
response = requests.get(url)
data = response.json()

latest_release = data[0]
latest_release = data[release_index]
release_date = latest_release["created_at"]

return release_date
Expand Down Expand Up @@ -415,8 +416,7 @@ def bump_up_version(next_version):
publish_wheels(current_version_str_without_dev)

if args.upload_assets:
print("upload assets")
release_date = get_commit_id_of_latest_release()
release_date = get_commit_id_of_latest_release(release_index=1)
changelog = get_changelog(release_date)
upload_assets(changelog, current_version_str_without_dev)

Expand Down

0 comments on commit 8e36237

Please sign in to comment.