MCPcopy Index your code
hub / github.com/commitizen-tools/commitizen / generate_ordered_changelog_tree

Function generate_ordered_changelog_tree

commitizen/changelog.py:201–213  ·  view source on GitHub ↗
(
    tree: Iterable[Mapping[str, Any]], change_type_order: list[str]
)

Source from the content-addressed store, hash-verified

199
200
201def generate_ordered_changelog_tree(
202 tree: Iterable[Mapping[str, Any]], change_type_order: list[str]
203) -> Generator[dict[str, Any], None, None]:
204 if len(set(change_type_order)) != len(change_type_order):
205 raise InvalidConfigurationError(
206 f"Change types contain duplicated types ({change_type_order})"
207 )
208
209 for entry in tree:
210 yield {
211 **entry,
212 "changes": _calculate_sorted_changes(change_type_order, entry["changes"]),
213 }
214
215
216def _calculate_sorted_changes(

Callers

nothing calls this directly

Calls 2

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…