Sha256: 95ef654264e210583127f1a34cbbfff68fa0cf8d5f1af0e689311749851eafa2
Contents?: true
Size: 490 Bytes
Versions: 1
Compression:
Stored size: 490 Bytes
Contents
require 'httparty' require 'deep_thought/ci_service/ci_service' module DeepThought module CIService class TravisPlugin < DeepThought::CIService::CIService def is_branch_green?(app, branch, *args) is_green = false response = HTTParty.get("#{@endpoint}/repos/#{app}/branches/#{branch}") build = JSON.parse(response.body) if build['branch']['state'] == 'passing' return true end return false end end end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
deep_thought-travis_plugin-0.1.0 | lib/deep_thought-travis_plugin/ci_service/travis_plugin.rb |