Skip to content
Snippets Groups Projects

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

Compare and Show latest version
4 files
+ 54
41
Compare changes
  • Side-by-side
  • Inline
Files
4
@@ -11,5 +11,11 @@ def erased_by_user?
@@ -11,5 +11,11 @@ def erased_by_user?
def erased_by_name
def erased_by_name
erased_by.name if erased_by_user?
erased_by.name if erased_by_user?
end
end
 
 
def status_title
 
if canceled? && pipeline.auto_canceled?
 
"Job is redundant and is auto-canceled by Pipeline ##{pipeline.auto_canceled_by_id}"
 
end
 
end
end
end
end
end
Loading