Method: Codebot::Formatters::Gitlab::PushHook#commit_summary

Defined in:
lib/codebot/formatters/gitlab_push_hook.rb

#commit_summary(commit) ⇒ Object



39
40
41
42
43
44
45
46
47
# File 'lib/codebot/formatters/gitlab_push_hook.rb', line 39

def commit_summary(commit)
  commit_default_format % {
    repository: format_repository(repository_name),
    branch: format_branch(branch),
    hash: format_hash(commit['id']),
    author: format_user(commit_author(commit)),
    title: prettify(commit['message'])
  }
end