Class: GFSM::Tools::CommitsSubdivider
- Inherits:
-
Object
- Object
- GFSM::Tools::CommitsSubdivider
- Defined in:
- lib/tools/commits_subdivider.rb
Class Method Summary collapse
Class Method Details
.subdivide_commits(configuration, commits) ⇒ Object
8 9 10 11 12 13 14 15 16 17 18 19 20 |
# File 'lib/tools/commits_subdivider.rb', line 8 def self.subdivide_commits(configuration, commits) subdivisions = {} commits.each do |commit| change_type = configuration.get_change_type_from_category(commit.category) if change_type (subdivisions[change_type] ||= []) << commit end end return subdivisions end |