Sha256: 16787f7bb9637a47c6875729afada5b00c54bacd83ce19b25b15bcd8d976d694
Contents?: true
Size: 853 Bytes
Versions: 1
Compression:
Stored size: 853 Bytes
Contents
module Lita::Extensions module GitHubWebHooksCore module Hooks class Push < Hook include Lita::Extensions::GitHubWebHooksCore::Hooks::RepoHooks def committer sender["login"] end def commit_count payload["commits"].length.to_s end def sender payload["sender"] end def attributes { committer: committer, commit_count: commit_count, repo: repo, sender: sender } end private def message @message ||= I18n.t( "lita.handlers.github_web_hooks.push", name: name, ref: ref, repo: repo, compare_url: compare_url ) end end end end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
lita-github-web-hooks-core-1.0.0 | lib/lita/extensions/github_web_hooks_core/hooks/push.rb |