Only allow XML response if repo has a build
This commit is contained in:
parent
8ff052792c
commit
44f274d306
|
@ -16,7 +16,7 @@ module Travis::Api::App::Responders
|
|||
}
|
||||
|
||||
def apply?
|
||||
super && resource.is_a?(Repository)
|
||||
super && resource.is_a?(Repository) && last_build
|
||||
end
|
||||
|
||||
def apply
|
||||
|
|
Loading…
Reference in New Issue
Block a user