lib/github-status/out.rb in concourse-github-status-0.6.6 vs lib/github-status/out.rb in concourse-github-status-0.7.0
- old
+ new
@@ -20,12 +20,12 @@
github.create_status repo, canonical_sha, state, options
else
statuses.map do |status|
options = {
context: status["context"] || "concourse",
- target_url: target_url,
- description: status["description"] || ""
+ description: status["description"] || "",
+ target_url: status["target_url"] || "#{atc_external_url}/builds/#{build_id}"
}
github.create_status repo, canonical_sha, status["state"], options
end
end
rescue Octokit::Error => error
@@ -34,14 +34,9 @@
end
Contract None => HashOf[String, String]
def version
{ 'context@sha' => "#{context}@#{canonical_sha}" }
- end
-
- Contract None => String
- def target_url
- @target_url ||= "#{atc_external_url}/builds/#{build_id}"
end
Contract None => HashOf[Symbol, String]
def options
@options ||= {