Class: Apadmi::Grout::AdoIssueClassifier

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

Overview

Ado specific issue classifier

Instance Method Summary collapse

Methods inherited from IssueClassifier

#filter_issues_by_type

Instance Method Details

#classify(issues) ⇒ Object

Parameters:



36
37
38
39
40
41
42
43
44
45
46
47
48
# File 'lib/apadmi/grout/actions/generate_release_notes_action/issue_classifier.rb', line 36

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