Class: Pronto::Formatter::GithubFormatter

Inherits:
CommitFormatter show all
Defined in:
lib/pronto/formatter/github_formatter.rb

Instance Method Summary collapse

Methods inherited from CommitFormatter

#existing_comments, #submit_comments

Methods inherited from GitFormatter

#format

Methods inherited from Base

#config, name

Instance Method Details

#client_moduleObject



4
5
6
# File 'lib/pronto/formatter/github_formatter.rb', line 4

def client_module
  Github
end

#line_number(message, _) ⇒ Object



12
13
14
# File 'lib/pronto/formatter/github_formatter.rb', line 12

def line_number(message, _)
  message.line.commit_line.position if message.line
end

#pretty_nameObject



8
9
10
# File 'lib/pronto/formatter/github_formatter.rb', line 8

def pretty_name
  'GitHub'
end