Fix release announcement to link to correct release branch of changelog (#20023)

Without this change, it was linking to `develop` as we were on the
`develop` branch because of the previous `merge-back` step at this point
in the release process.

Follow-up to https://github.com/element-hq/synapse/pull/19984 as this
was an oversight and I assumed we would still be on the `release-v1.158`
branch by that point.
This commit is contained in:
Eric Eastwood
2026-07-31 13:58:20 -05:00
committed by GitHub
parent e4644ae2b9
commit f61950d54d
2 changed files with 3 additions and 2 deletions
+2 -2
View File
@@ -736,8 +736,8 @@ def announce(_gh_token: str | None) -> None:
def _announce() -> None:
"""Generate markdown to announce the release."""
synapse_repo = get_repo_and_check_clean_checkout()
current_version = get_package_version()
release_branch_name = get_release_branch_name(current_version)
tag_name = f"v{current_version}"
is_rc = "rc" in tag_name
@@ -756,7 +756,7 @@ Hi everyone. Synapse {current_version} has just been released.
)
release_text += f"""
[notes](https://github.com/element-hq/synapse/blob/{synapse_repo.active_branch.name}/CHANGES.md) | \
[notes](https://github.com/element-hq/synapse/blob/{release_branch_name}/CHANGES.md) | \
[docker](https://hub.docker.com/r/matrixdotorg/synapse/tags?name={tag_name}) | \
[debs](https://packages.matrix.org/debian/) | \
[pypi](https://pypi.org/project/matrix-synapse/{current_version}/)"""