
- Re-factor - Remove code for notifications - Remove addons - Remove travis-core gem. - Ignore logs directory only - Move core tests to spec/lib
18 lines
346 B
Ruby
18 lines
346 B
Ruby
module Travis
|
|
module Services
|
|
class FindAnnotations < Base
|
|
register :find_annotations
|
|
|
|
def run
|
|
if params[:ids]
|
|
scope(:annotation).where(id: params[:ids])
|
|
elsif params[:job_id]
|
|
scope(:annotation).where(job_id: params[:job_id])
|
|
else
|
|
[]
|
|
end
|
|
end
|
|
end
|
|
end
|
|
end
|