Skip to content

Commit

Permalink
[7.0.x] releasing: Always set doc_version (#9590)
Browse files Browse the repository at this point in the history
Co-authored-by: Florian Bruhin <[email protected]>
  • Loading branch information
github-actions[bot] and The-Compiler authored Feb 3, 2022
1 parent b304499 commit 7fa3972
Showing 1 changed file with 1 addition and 4 deletions.
5 changes: 1 addition & 4 deletions scripts/prepare-release-pr.py
Original file line number Diff line number Diff line change
Expand Up @@ -90,13 +90,10 @@ 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
Expand All @@ -107,7 +104,7 @@ def prepare_release_pr(
"--",
version,
template_name,
doc_version,
release_branch, # doc_version
"--skip-check-links",
]
print("Running", " ".join(cmdline))
Expand Down

0 comments on commit 7fa3972

Please sign in to comment.