Skip to content

Commit

Permalink
util: append upcoming_version to versions
Browse files Browse the repository at this point in the history
Signed-off-by: Tianling Shen <[email protected]>
  • Loading branch information
1715173329 authored and aparcar committed Feb 8, 2025
1 parent 46cd14d commit 8d1cce1
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions asu/util.py
Original file line number Diff line number Diff line change
Expand Up @@ -438,6 +438,9 @@ def reload_versions(app: FastAPI) -> bool:
if any(version.startswith(branch) for branch in settings.branches.keys())
]

if response.json()["upcoming_version"]:
app.versions.append(response.json()["upcoming_version"])

for branch in settings.branches.keys():
if branch != "SNAPSHOT":
app.versions.append(f"{branch}-SNAPSHOT")
Expand Down

0 comments on commit 8d1cce1

Please sign in to comment.