mirror of
https://github.com/element-hq/synapse.git
synced 2025-11-11 00:00:56 -05:00
Spruce up generated announcement text in the release script (#19089)
This commit is contained in:
parent
b835eb253c
commit
5556b491c1
1
changelog.d/19089.misc
Normal file
1
changelog.d/19089.misc
Normal file
@ -0,0 +1 @@
|
|||||||
|
Update the release script's generated announcement text to include a title and extra text for RC's.
|
||||||
@ -715,18 +715,31 @@ def _announce() -> None:
|
|||||||
|
|
||||||
current_version = get_package_version()
|
current_version = get_package_version()
|
||||||
tag_name = f"v{current_version}"
|
tag_name = f"v{current_version}"
|
||||||
|
is_rc = "rc" in tag_name
|
||||||
|
|
||||||
|
release_text = f"""
|
||||||
|
### Synapse {current_version} {"🧪" if is_rc else "🚀"}
|
||||||
|
|
||||||
click.echo(
|
|
||||||
f"""
|
|
||||||
Hi everyone. Synapse {current_version} has just been released.
|
Hi everyone. Synapse {current_version} has just been released.
|
||||||
|
"""
|
||||||
|
|
||||||
|
if "rc" in tag_name:
|
||||||
|
release_text += (
|
||||||
|
"\nThis is a release candidate. Please help us test it out "
|
||||||
|
"before the final release by deploying it to non-production environments, "
|
||||||
|
"and reporting any issues you find to "
|
||||||
|
"[the issue tracker](https://github.com/element-hq/synapse/issues). Thanks!\n"
|
||||||
|
)
|
||||||
|
|
||||||
|
release_text += f"""
|
||||||
[notes](https://github.com/element-hq/synapse/releases/tag/{tag_name}) | \
|
[notes](https://github.com/element-hq/synapse/releases/tag/{tag_name}) | \
|
||||||
[docker](https://hub.docker.com/r/matrixdotorg/synapse/tags?name={tag_name}) | \
|
[docker](https://hub.docker.com/r/matrixdotorg/synapse/tags?name={tag_name}) | \
|
||||||
[debs](https://packages.matrix.org/debian/) | \
|
[debs](https://packages.matrix.org/debian/) | \
|
||||||
[pypi](https://pypi.org/project/matrix-synapse/{current_version}/)"""
|
[pypi](https://pypi.org/project/matrix-synapse/{current_version}/)"""
|
||||||
)
|
|
||||||
|
|
||||||
if "rc" in tag_name:
|
click.echo(release_text)
|
||||||
|
|
||||||
|
if is_rc:
|
||||||
click.echo(
|
click.echo(
|
||||||
"""
|
"""
|
||||||
Announce the RC in
|
Announce the RC in
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user