Commit d7b08024 authored by Lin Jen-Shin's avatar Lin Jen-Shin
parent 268f7713
......@@ -99,7 +99,7 @@ module Ci
end
def can_pick?(build)
not_locked_or_locked_to?(build.project) &&
available_for?(build.project) &&
run_untagged_or_has_tags?(build) &&
accepting_tags?(build.tag_list)
end
......@@ -125,7 +125,7 @@ module Ci
end
end
def not_locked_or_locked_to?(project)
def available_for?(project)
!locked? || projects.exists?(id: project.id)
end
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment