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:
@@ -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))
|
||||
|
||||
Reference in New Issue
Block a user