Skip to content

Commit

Permalink
[7.0.x] releasing: Add template for major releases (#9597)
Browse files Browse the repository at this point in the history
Co-authored-by: Florian Bruhin <me@the-compiler.org>
  • Loading branch information
github-actions[bot] and The-Compiler committed Feb 3, 2022
1 parent 7fa3972 commit 737b220
Show file tree
Hide file tree
Showing 3 changed files with 29 additions and 3 deletions.
4 changes: 3 additions & 1 deletion scripts/prepare-release-pr.py
Expand Up @@ -88,7 +88,9 @@ def prepare_release_pr(

print(f"Branch {Fore.CYAN}{release_branch}{Fore.RESET} created.")

if prerelease:
if is_major:
template_name = "release.major.rst"
elif prerelease:
template_name = "release.pre.rst"
elif is_feature_release:
template_name = "release.minor.rst"
Expand Down
24 changes: 24 additions & 0 deletions scripts/release.major.rst
@@ -0,0 +1,24 @@
pytest-{version}
=======================================

The pytest team is proud to announce the {version} release!

This release contains new features, improvements, bug fixes, and breaking changes, so users
are encouraged to take a look at the CHANGELOG carefully:

https://docs.pytest.org/en/stable/changelog.html

For complete documentation, please visit:

https://docs.pytest.org/en/stable/

As usual, you can upgrade from PyPI via:

pip install -U pytest

Thanks to all of the contributors to this release:

{contributors}

Happy testing,
The pytest Development Team
4 changes: 2 additions & 2 deletions scripts/release.minor.rst
Expand Up @@ -3,8 +3,8 @@ pytest-{version}

The pytest team is proud to announce the {version} release!

This release contains new features, improvements, bug fixes, and breaking changes, so users
are encouraged to take a look at the CHANGELOG carefully:
This release contains new features, improvements, and bug fixes,
the full list of changes is available in the changelog:

https://docs.pytest.org/en/stable/changelog.html

Expand Down

0 comments on commit 737b220

Please sign in to comment.