scripts: Use release branch for changelog URL (#9380)

* scripts: Use release branch for changelog URL

With a prerelease, /stable won't show the correct changelog.

* [pre-commit.ci] auto fixes from pre-commit.com hooks

for more information, see https://pre-commit.ci

Co-authored-by: pre-commit-ci[bot] <66853113+pre-commit-ci[bot]@users.noreply.github.com>
This commit is contained in:
Florian Bruhin
2021-12-07 11:24:57 +01:00
committed by GitHub
parent 5cb50fa13c
commit 21a186bbda
3 changed files with 15 additions and 5 deletions
+4
View File
@@ -90,10 +90,13 @@ def prepare_release_pr(
if prerelease:
template_name = "release.pre.rst"
doc_version = release_branch
elif is_feature_release:
template_name = "release.minor.rst"
doc_version = "" # unused in template
else:
template_name = "release.patch.rst"
doc_version = "" # unused in template
# important to use tox here because we have changed branches, so dependencies
# might have changed as well
@@ -104,6 +107,7 @@ def prepare_release_pr(
"--",
version,
template_name,
doc_version,
"--skip-check-links",
]
print("Running", " ".join(cmdline))