Skip to content
Snippets Groups Projects

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

5 files
+ 12
7
Compare changes
  • Side-by-side
  • Inline
Files
5
@@ -121,4 +121,8 @@ def detailed_status?(status)
status.respond_to?(:label) &&
status.respond_to?(:icon)
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?
end
end
Loading