diff options
author | Pierre Sassoulas <pierre.sassoulas@gmail.com> | 2022-06-01 12:45:53 +0200 |
---|---|---|
committer | Pierre Sassoulas <pierre.sassoulas@gmail.com> | 2022-06-01 16:33:17 +0200 |
commit | 0492d79f18a684ac6e4b9eee5b20269b56bf0e0f (patch) | |
tree | af781781fb17885b1be7efff0c86b8ac4bf394d3 | |
parent | 1cec04f0220142883a97a1d29078161608d0b54d (diff) | |
download | pylint-git-0492d79f18a684ac6e4b9eee5b20269b56bf0e0f.tar.gz |
[tbump] Upgrade the bump script in preparation of 2.14 maintenance
-rw-r--r-- | script/bump_changelog.py | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/script/bump_changelog.py b/script/bump_changelog.py index 33a264fa1..f27195bdc 100644 --- a/script/bump_changelog.py +++ b/script/bump_changelog.py @@ -16,8 +16,9 @@ import logging from datetime import datetime from pathlib import Path -# TODO: 2.14.0 Upgrade bump script -DEFAULT_CHANGELOG_PATH = Path("ChangeLog") +# TODO: 2.15.0 Modify the way we handle the patch version +# release notes +DEFAULT_CHANGELOG_PATH = Path("doc/whatsnew/2/2.14/full.rst") RELEASE_DATE_TEXT = "Release date: TBA" WHATS_NEW_TEXT = "What's New in Pylint" @@ -93,7 +94,7 @@ def get_whats_new( version: str, add_date: bool = False, change_date: bool = False ) -> str: whats_new_text = FULL_WHATS_NEW_TEXT.format(version=version) - result = [whats_new_text, "=" * len(whats_new_text)] + result = [whats_new_text, "-" * len(whats_new_text)] if add_date and change_date: result += [NEW_RELEASE_DATE_MESSAGE] elif add_date: |