Automatically produce the "chat_reply" trace section
Chatops supports two trace sections: chat_reply and build_script. If chat_reply is not present we use build_script. The need for an additional trace section exists because build_script
includes the output of both the before_script
and script
lists, and you almost never want the output of before_script
to be sent back to chat.
Right now one can work around this by manually echoing the "chat_reply" trace section, but this feels redundant. We should come up with a way to remove the need for this so chatops scripts only have to be concerned with writing to STDOUT/STDERR.