summaryrefslogtreecommitdiff
path: root/app/models/ci/runner.rb
diff options
context:
space:
mode:
Diffstat (limited to 'app/models/ci/runner.rb')
-rw-r--r--app/models/ci/runner.rb4
1 files changed, 4 insertions, 0 deletions
diff --git a/app/models/ci/runner.rb b/app/models/ci/runner.rb
index e56a8d15b9a..bad601c9121 100644
--- a/app/models/ci/runner.rb
+++ b/app/models/ci/runner.rb
@@ -139,6 +139,10 @@ module Ci
runner_groups.present?
end
+ def project?
+ runner_projects.present?
+ end
+
def can_pick?(build)
return false if self.ref_protected? && !build.protected?