Class: Apadmi::Grout::JiraIssueClassifier

Inherits:
IssueClassifier show all
Defined in:
lib/apadmi/grout/actions/generate_release_notes_action/issue_classifier.rb

Overview

Jira specific issue classifier

Instance Method Summary collapse

Methods inherited from IssueClassifier

#filter_issues_by_type

Instance Method Details

#classify(issues) ⇒ Object

Parameters:



18
19
20
21
22
23
24
25
26
27
28
29
30
# File 'lib/apadmi/grout/actions/generate_release_notes_action/issue_classifier.rb', line 18

def classify(issues)
  tasks = filter_issues_by_type(%w[Task], issues)
  features = filter_issues_by_type(%w[Story], issues)
  improvements = filter_issues_by_type(%w[Improvement Rework Debt], issues)
  defects = filter_issues_by_type(%w[Bug], issues)
  ClassifiedIssues.new(
    tasks,
    features,
    improvements,
    defects,
    issues - tasks - features - improvements - defects
  )
end