Sha256: c36e6deac2719f48d494274ec5080fa734e1bf6d23b210723338bca3c3b44424
Contents?: true
Size: 1.12 KB
Versions: 1
Compression:
Stored size: 1.12 KB
Contents
module Lita::Extensions module GitHubWebHooksCore module Hooks class DeploymentStatus < Hook include Lita::Extensions::GitHubWebHooksCore::Hooks::RepoHooks def status payload["deployment_status"]["state"] end def deployment_description [deploy["description"], status].join(": ") end def sha deploy["sha"] end def environment deploy["environment"] end def start_time deploy["created_at"] end def deploy payload["deployment"] end def deployer payload["sender"]["login"] end def ref deploy["ref"] end def attributes { status: status, deployment_description: deployment_description, ref: ref, repo: repo, sha: sha, environment: environment, start_time: start_time, deploy: deploy, deployer: deployer } 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/deployment_status.rb |