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>2021-11-25 18:09:54 +0300
committerGitLab Bot <gitlab-bot@gitlab.com>2021-11-25 18:09:54 +0300
commitd03aeb1110374d140a42622716597ccfa8e4ba57 (patch)
tree2f915a4c8935af179cb81c646a8e4a3f65c78c0d /app/models/commit_status.rb
parent85a825bbbfe51615f447d632a5f53c297ec1b33a (diff)
Add latest changes from gitlab-org/gitlab@master
Diffstat (limited to 'app/models/commit_status.rb')
-rw-r--r--app/models/commit_status.rb4
1 files changed, 4 insertions, 0 deletions
diff --git a/app/models/commit_status.rb b/app/models/commit_status.rb
index d75f7984e2c..5d3a5ce9b21 100644
--- a/app/models/commit_status.rb
+++ b/app/models/commit_status.rb
@@ -217,6 +217,10 @@ class CommitStatus < Ci::ApplicationRecord
false
end
+ def self.bulk_insert_tags!(statuses, tag_list_by_build)
+ Gitlab::Ci::Tags::BulkInsert.new(statuses, tag_list_by_build).insert!
+ end
+
def locking_enabled?
will_save_change_to_status?
end