in lib/retrospective.rb [123:141]
def create_individual_discussions(issue_url, team:, dry_run:)
questions = Team::TEAM_MEMBER_FIELDS.map do |people|
next if team[people].nil? || team[people].empty?
team[people].map do |person|
"@#{person} what went well this release? What didn't go well? What can we improve?"
end
end.flatten.compact
questions.each do |question|
log_info('Discussion', question, dry_run: dry_run)
write_client.post("#{issue_url}/discussions", body: { body: question }) unless dry_run
end
puts 'Created individual discussions'
puts ''
end