class Gitlab::QA::Report::ResultsInIssues

def new_note_matches_discussion?(note, discussion)

def new_note_matches_discussion?(note, discussion)
  note_error = error_and_stack_trace(note)
  discussion_error = error_and_stack_trace(discussion.notes.first['body'])
  return false if note_error.empty? || discussion_error.empty?
  note_error == discussion_error
end