Changex.Grouper (changex v0.3.0)
This module will take a list of commits and sort them based on the type of the commit.
Link to this section Summary
Link to this section Functions
Link to this function
group_by_scope(commits)
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]
}
}
Link to this function
group_by_type(commits)
Take a list of commits
in the format:
[hash, subject | body]
And transform them into a map based on the type of the commits. the map could look like:
%{
fix: [commit1, commit2],
chore: [commit3, commit4]
}