Class: Pronto::Formatter::GitlabFormatter
- Inherits:
-
Object
- Object
- Pronto::Formatter::GitlabFormatter
- Defined in:
- lib/pronto/formatter/gitlab_formatter.rb
Instance Method Summary collapse
Instance Method Details
#format(messages, repo, _) ⇒ Object
4 5 6 7 8 9 10 11 12 13 14 15 16 |
# File 'lib/pronto/formatter/gitlab_formatter.rb', line 4 def format(, repo, _) client = Gitlab.new repo = .uniq.map do || create_comment(client, .commit_sha, .msg, .path, .line.commit_line.new_lineno) end "#{.compact.count} Pronto messages posted to GitLab" end |