Skip to content
Snippets Groups Projects
Commit 5adaabdd authored by Jason Roehm's avatar Jason Roehm
Browse files

make conditional a bit clearer

parent 588002d8
No related branches found
No related tags found
1 merge request!3230CI: Add 'triggers' keyword to 'only' and 'except' lists to allow control over when triggers cause builds to run
Loading
Loading
@@ -289,7 +289,7 @@ module Ci
return false if path && path != self.path
return true if tag && pattern == 'tags'
return true if !tag && pattern == 'branches'
return true if !trigger_request.nil? && pattern == 'triggers'
return true if trigger_request.present? && pattern == 'triggers'
 
if pattern.first == "/" && pattern.last == "/"
Regexp.new(pattern[1...-1]) =~ ref
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment