in lib/retrospective.rb [67:94]
def create_discussions(issue_url, team:, dry_run:)
questions = team.discussions.to_a
if team.create_discussions
questions.unshift(
'👍 What went well this release?',
'👎 What didn\'t go well this release?',
'📈 What can we improve going forward?',
'🌟 What praise do you have for the group?'
)
end
return if questions.empty?
questions.each do |question|
comment = "## #{question}"
log_info('Discussion', comment, dry_run: dry_run)
unless dry_run
write_client.post("#{issue_url}/discussions", body: { body: comment })
end
end
puts 'Created discussions'
puts ''
end