lib/github-status/out.rb in concourse-github-status-0.5.11 vs lib/github-status/out.rb in concourse-github-status-0.6.2
- old
+ new
@@ -15,28 +15,28 @@
include Support::GitHub
Contract None => Or[Sawyer::Resource, ArrayOf[Sawyer::Resource]]
def update!
if statuses.empty?
- github.create_status repo, sha, state, options
+ 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"] || ""
}
- github.create_status repo, sha, status["state"], options
+ github.create_status repo, canonical_sha, status["state"], options
end
end
rescue Octokit::Error => error
STDERR.puts error.message
abort
end
Contract None => HashOf[String, String]
def version
- { 'context@sha' => "#{context}@#{sha}" }
+ { 'context@sha' => "#{context}@#{canonical_sha}" }
end
Contract None => String
def target_url
@target_url ||= "#{atc_external_url}/builds/#{build_id}"