mirror of
https://github.com/wahyd4/gitlabhq.git
synced 2026-08-18 17:16:08 +10:00
Renamed to available_for? Feedback from:
https://gitlab.com/gitlab-org/gitlab-ce/merge_requests/4093#note_12321240
This commit is contained in:
@@ -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
|
||||
|
||||
|
||||
Reference in New Issue
Block a user