Skip to content
Snippets Groups Projects

Support pipeline job context in Duo Chat

Merged Eva Kadlecová requested to merge 468461-support-pipeline-context-in-duo-chat into master
All threads resolved!
2 files
+ 32
1
Compare changes
  • Side-by-side
  • Inline
Files
2
@@ -2,8 +2,10 @@
@@ -2,8 +2,10 @@
module Ci
module Ci
class JobAiEntity < ::Ci::JobEntity
class JobAiEntity < ::Ci::JobEntity
 
LINES_LIMIT = 1000
 
expose :job_log do |job, options|
expose :job_log do |job, options|
job.trace.raw(last_lines: 1000)&.last(options[:content_limit])
job.trace.raw(last_lines: LINES_LIMIT)&.last(options[:content_limit])
end
end
end
end
end
end
Loading