diff options
author | GitLab Bot <gitlab-bot@gitlab.com> | 2023-02-01 15:10:48 +0300 |
---|---|---|
committer | GitLab Bot <gitlab-bot@gitlab.com> | 2023-02-01 15:10:48 +0300 |
commit | a21091270d45530468f8ac2f4f926fe1b9840b67 (patch) | |
tree | a641a030521f16e320f1d3559a49956f485c217f /app/models | |
parent | 8700fc108e2c269a4d73530d60662a6aaff14381 (diff) |
Add latest changes from gitlab-org/gitlab@master
Diffstat (limited to 'app/models')
-rw-r--r-- | app/models/ci/runner.rb | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/app/models/ci/runner.rb b/app/models/ci/runner.rb index 5c4512c5f72..19acd86a7f4 100644 --- a/app/models/ci/runner.rb +++ b/app/models/ci/runner.rb @@ -495,6 +495,10 @@ module Ci "#{CREATED_RUNNER_TOKEN_PREFIX}#{token}" end + def created_via_ui? + token.start_with?(CREATED_RUNNER_TOKEN_PREFIX) + end + private scope :with_upgrade_status, ->(upgrade_status) do |