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

Function _calculate_sorted_changes

commitizen/changelog.py:216–221  ·  view source on GitHub ↗
(
    change_type_order: list[str], changes: Mapping[str, Any]
)

Source from the content-addressed store, hash-verified

214
215
216def _calculate_sorted_changes(
217 change_type_order: list[str], changes: Mapping[str, Any]
218) -> OrderedDict[str, Any]:
219 remaining_change_types = set(changes.keys()) - set(change_type_order)
220 sorted_change_types = change_type_order + sorted(remaining_change_types)
221 return OrderedDict((ct, changes[ct]) for ct in sorted_change_types if ct in changes)
222
223
224def get_changelog_template(loader: BaseLoader, template: str) -> Template:

Callers 1

Calls

no outgoing calls

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…