Skip to content
Snippets Groups Projects

Add auto-cancel for pending pipelines on branch, if they are not HEAD

Compare and Show latest version
3 files
+ 16
3
Compare changes
  • Side-by-side
  • Inline
Files
3
@@ -123,6 +123,6 @@ def detailed_status?(status)
end
def status_title(pipeline)
"This pipeline is redundant as a newer pipeline exists (canceled by ##{pipeline.auto_canceled_by_id} pipeline)" if pipeline.auto_canceled_by_id? && pipeline.canceled?
Ci::PipelineStatusBadgePresenter.new(pipeline).status_title
end
end
Loading