Class: Fett::GitHub
- Inherits:
-
Object
- Object
- Fett::GitHub
- Defined in:
- lib/fett/github.rb
Constant Summary collapse
- LOGIN =
ENV.fetch("FETT_GITHUB_LOGIN")
- PASSWORD =
ENV.fetch("FETT_GITHUB_PASSWORD")
- FETT_URL =
ENV.fetch("FETT_URL")
Class Method Summary collapse
Class Method Details
.new_build_status(repository, commit_sha1, status) ⇒ Object
11 12 13 14 |
# File 'lib/fett/github.rb', line 11 def self.new_build_status(repository, commit_sha1, status) = GitHubStatusMessageComposer.compose(status) client.create_status(repository.fullname, commit_sha1, status, description: ) end |
.new_hook(repository) ⇒ Object
7 8 9 |
# File 'lib/fett/github.rb', line 7 def self.new_hook(repository) client.create_hook(repository.fullname, "web", *params) end |