mirror of
https://github.com/gradio-app/gradio.git
synced 2025-03-25 12:10:31 +08:00
fix issue with missing version (#3632)
Co-authored-by: Freddy Boulton <alfonsoboulton@gmail.com>
This commit is contained in:
parent
0d9a08bf64
commit
99fc2dd30f
16
CHANGELOG.md
16
CHANGELOG.md
@ -40,7 +40,7 @@ No changes to highlight.
|
||||
No changes to highlight.
|
||||
|
||||
|
||||
# 3.23.0
|
||||
# Version 3.23.0
|
||||
|
||||
|
||||
## New Features:
|
||||
@ -78,7 +78,7 @@ No changes to highlight.
|
||||
No changes to highlight.
|
||||
|
||||
|
||||
# 3.22.1
|
||||
# Version 3.22.1
|
||||
|
||||
|
||||
## New Features:
|
||||
@ -110,7 +110,7 @@ No changes to highlight.
|
||||
No changes to highlight.
|
||||
|
||||
|
||||
# 3.22.0
|
||||
# Version 3.22.0
|
||||
|
||||
|
||||
## New Features:
|
||||
@ -153,7 +153,7 @@ No changes to highlight.
|
||||
No changes to highlight.
|
||||
|
||||
|
||||
# 3.21.0
|
||||
# Version 3.21.0
|
||||
|
||||
## New Features:
|
||||
|
||||
@ -304,7 +304,7 @@ No changes to highlight.
|
||||
|
||||
No changes to highlight.
|
||||
|
||||
# 3.20.1
|
||||
# Version 3.20.1
|
||||
|
||||
## New Features:
|
||||
|
||||
@ -339,7 +339,7 @@ No changes to highlight.
|
||||
|
||||
No changes to highlight.
|
||||
|
||||
# 3.20.0
|
||||
# Version 3.20.0
|
||||
|
||||
## New Features:
|
||||
|
||||
@ -431,7 +431,7 @@ By [@freddyaboulton](https://github.com/freddyaboulton) in [PR 3297](https://git
|
||||
|
||||
No changes to highlight.
|
||||
|
||||
# 3.19.1
|
||||
# Version 3.19.1
|
||||
|
||||
## New Features:
|
||||
|
||||
@ -463,7 +463,7 @@ No changes to highlight.
|
||||
|
||||
No changes to highlight.
|
||||
|
||||
# 3.19.0
|
||||
# Version 3.19.0
|
||||
|
||||
## New Features:
|
||||
|
||||
|
@ -37,7 +37,10 @@ def format_release_notes(latest_version: str):
|
||||
lines = latest.readlines()
|
||||
assert "# Upcoming Release" in lines[0]
|
||||
with open(upcoming, "w") as latest:
|
||||
lines[0] = latest_version.replace("v", "# Version ") + "\n"
|
||||
if latest_version.startswith("v"):
|
||||
lines[0] = latest_version.replace("v", "# Version ") + "\n"
|
||||
else:
|
||||
lines[0] = "# Version " + latest_version + "\n"
|
||||
lines = textwrap.dedent(TEMPLATE).splitlines(keepends=True) + lines
|
||||
latest.writelines(lines)
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user