diff --git a/lib/travis/api/app/responders/xml.rb b/lib/travis/api/app/responders/xml.rb index 410dec84..25bd5438 100644 --- a/lib/travis/api/app/responders/xml.rb +++ b/lib/travis/api/app/responders/xml.rb @@ -9,10 +9,10 @@ module Travis::Api::App::Responders <% @resource.each do |r| %> <% end %> @@ -23,7 +23,7 @@ module Travis::Api::App::Responders passed: 'Success', failed: 'Failure', errored: 'Error', - canceld: 'Canceled', + canceled: 'Canceled', } ACTIVITY = { @@ -42,6 +42,10 @@ module Travis::Api::App::Responders TEMPLATE_ERB.result(binding) end + def branch + params[:branch].present? ? params[:branch] : master + end + private def content_type