lib/github-status/support/params.rb in concourse-github-status-0.6.4 vs lib/github-status/support/params.rb in concourse-github-status-0.6.6
- old
+ new
@@ -22,15 +22,15 @@
abort
end
Contract None => String
def context
- @context ||= params.fetch 'context', 'concourse'
+ @context ||= params.fetch 'context', ENV["BUILD_JOB_NAME"]
end
Contract None => String
def description
- @description ||= params.fetch 'description', ''
+ @description ||= params.fetch 'description', "#{ENV["BUILD_JOB_NAME"]} number #{ENV["BUILD_NAME"]}"
end
Contract None => Array
def statuses
@statuses ||= params.fetch 'statuses', []