Changex.Grouper
This module will take a list of commits and sort them based on the type of the commit.
Summary
group_by_scope(commits) | Take a map of |
group_by_type(commits) | Take a list of |
Functions
Take a map of commits
in the format:
%{
fix: [commit1, commit2],
chore: [commit3, commit4]
}
And transform them into a map based on the scope of the commits. the map could look like:
%{
fix: %{
scope1: [commit1, commit2],
scope2: [commit5, commit6]
}
chore: %{
scope1: [commit3, commit4],
scope2: [commit7, commit8]
}
}