Skip to content

Commit

Permalink
[tbump] Upgrade the bump script in preparation of 2.14 maintenance
Browse files Browse the repository at this point in the history
  • Loading branch information
Pierre-Sassoulas committed Jun 1, 2022
1 parent 1cec04f commit 0492d79
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions script/bump_changelog.py
Original file line number Diff line number Diff line change
Expand Up @@ -16,8 +16,9 @@
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"
Expand Down Expand Up @@ -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:
Expand Down

0 comments on commit 0492d79

Please sign in to comment.