lib/github-status/support/github.rb in concourse-github-status-0.5.11 vs lib/github-status/support/github.rb in concourse-github-status-0.6.2

- old
+ new

@@ -10,8 +10,13 @@ Contract None => Octokit::Client def github @github ||= Octokit::Client.new access_token: access_token end + + Contract None => String + def canonical_sha + @canonical_sha ||= (sha.match(/^.{40}$/) || github.commit(repo, sha).sha).to_s + end end end end