Skip to content

Commit

Permalink
Adding support for in changelog for providers (apache#45154)
Browse files Browse the repository at this point in the history
  • Loading branch information
amoghrajesh authored Dec 23, 2024
1 parent 351ac28 commit 70d15a8
Show file tree
Hide file tree
Showing 2 changed files with 13 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -154,6 +154,7 @@ def __init__(self):
self.misc: list[Change] = []
self.features: list[Change] = []
self.breaking_changes: list[Change] = []
self.docs: list[Change] = []
self.other: list[Change] = []


Expand Down Expand Up @@ -936,6 +937,8 @@ def _get_changes_classified(
classified_changes.features.append(change)
elif type_of_change == TypeOfChange.BREAKING_CHANGE and with_breaking_changes:
classified_changes.breaking_changes.append(change)
elif type_of_change == TypeOfChange.DOCUMENTATION:
classified_changes.docs.append(change)
else:
classified_changes.other.append(change)
return classified_changes
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -60,6 +60,16 @@ Misc
{%- endif %}


{%- if classified_changes and classified_changes.docs %}

Doc-only
~~~~
{% for doc in classified_changes.docs %}
* ``{{ doc.message_without_backticks | safe }}``
{%- endfor %}
{%- endif %}


.. Below changes are excluded from the changelog. Move them to
appropriate section above if needed. Do not delete the lines(!):
{%- if classified_changes and classified_changes.other %}
Expand Down

0 comments on commit 70d15a8

Please sign in to comment.