Class: Pronto::Formatter::GithubFormatter
- Inherits:
-
Object
- Object
- Pronto::Formatter::GithubFormatter
- Defined in:
- lib/pronto/formatter/github_formatter.rb
Instance Method Summary collapse
Instance Method Details
#format(messages) ⇒ Object
6 7 8 9 10 11 12 13 14 15 16 17 18 |
# File 'lib/pronto/formatter/github_formatter.rb', line 6 def format() = .map do || repo = github_slug() sha = .commit_sha position = .line.commit_line.position if .line path = .path body = .msg create_comment(repo, sha, position, path, body) end "#{commit_messages.compact.count} Pronto messages posted to GitHub" end |