Welcome to mirror list, hosted at ThFree Co, Russian Federation.

gitlab.com/gitlab-org/gitlab-foss.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorGitLab Bot <gitlab-bot@gitlab.com>2023-02-01 15:10:48 +0300
committerGitLab Bot <gitlab-bot@gitlab.com>2023-02-01 15:10:48 +0300
commita21091270d45530468f8ac2f4f926fe1b9840b67 (patch)
treea641a030521f16e320f1d3559a49956f485c217f /app/models
parent8700fc108e2c269a4d73530d60662a6aaff14381 (diff)
Add latest changes from gitlab-org/gitlab@master
Diffstat (limited to 'app/models')
-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 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