mirror of
https://github.com/saltstack/salt.git
synced 2025-04-16 01:30:20 +00:00
Update replacements now that the release notes are in Markdown
Signed-off-by: Pedro Algarvio <palgarvio@vmware.com>
This commit is contained in:
parent
b06d28d182
commit
d5ac32b6f2
1 changed files with 1 additions and 50 deletions
|
@ -171,56 +171,7 @@ def _get_pkg_changelog_contents(ctx: Context, version: str):
|
|||
"""
|
||||
changes = _get_changelog_contents(ctx, version)
|
||||
changes = "\n".join(changes.split("\n")[2:])
|
||||
changes = changes.replace(
|
||||
textwrap.dedent(
|
||||
"""
|
||||
Removed
|
||||
-------
|
||||
|
||||
"""
|
||||
),
|
||||
"",
|
||||
)
|
||||
changes = changes.replace(
|
||||
textwrap.dedent(
|
||||
"""
|
||||
Deprecated
|
||||
----------
|
||||
|
||||
"""
|
||||
),
|
||||
"",
|
||||
)
|
||||
changes = changes.replace(
|
||||
textwrap.dedent(
|
||||
"""
|
||||
Changed
|
||||
-------
|
||||
|
||||
"""
|
||||
),
|
||||
"",
|
||||
)
|
||||
changes = changes.replace(
|
||||
textwrap.dedent(
|
||||
"""
|
||||
Fixed
|
||||
-----
|
||||
|
||||
"""
|
||||
),
|
||||
"",
|
||||
)
|
||||
changes = changes.replace(
|
||||
textwrap.dedent(
|
||||
"""
|
||||
Added
|
||||
-----
|
||||
|
||||
"""
|
||||
),
|
||||
"",
|
||||
)
|
||||
changes = changes.replace("### ", "# ").replace("\n\n\n", "\n\n")
|
||||
return changes
|
||||
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue