Class: Pronto::Formatter::GithubCombinedStatusFormatter

Inherits:
Base
  • Object
show all
Defined in:
lib/pronto/formatter/github_combined_status_formatter.rb

Class Method Summary collapse

Instance Method Summary collapse

Methods inherited from Base

#config

Class Method Details

.nameObject



6
7
8
# File 'lib/pronto/formatter/github_combined_status_formatter.rb', line 6

def self.name
  'github_combined_status'
end

Instance Method Details

#format(messages, repo, _) ⇒ Object



10
11
12
13
14
15
# File 'lib/pronto/formatter/github_combined_status_formatter.rb', line 10

def format(messages, repo, _)
  client = Github.new(repo)
  head = repo.head_commit_sha

  create_status(client, head, messages.uniq || [])
end