hubot-github-event-announcer
Version:
Announces GitHub webhook events
12 lines (9 loc) • 333 B
text/coffeescript
module.exports =
# Public: Formats a comment by adding the blockquote character to the beginning of each line.
#
# * `text` {String} containing the body of the comment.
formatComment: (text) ->
lines = text.split("\n")
outputLines = []
outputLines.push("> #{line}") for line in lines
outputLines.join("\n")