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:
Diffstat (limited to 'lib/gitlab/data_builder/push.rb')
-rw-r--r--lib/gitlab/data_builder/push.rb3
1 files changed, 3 insertions, 0 deletions
diff --git a/lib/gitlab/data_builder/push.rb b/lib/gitlab/data_builder/push.rb
index f941c57a6dd..46110937132 100644
--- a/lib/gitlab/data_builder/push.rb
+++ b/lib/gitlab/data_builder/push.rb
@@ -12,6 +12,7 @@ module Gitlab
before: "95790bf891e76fee5e1747ab589903a6a1f80f22",
after: "da1560886d4f094c3e6c9ef40349f7d38b5d27d7",
ref: "refs/heads/master",
+ ref_protected: true,
checkout_sha: "da1560886d4f094c3e6c9ef40349f7d38b5d27d7",
message: "Hello World",
user_id: 4,
@@ -55,6 +56,7 @@ module Gitlab
# before: String,
# after: String,
# ref: String,
+ # ref_protected: Boolean,
# user_id: String,
# user_name: String,
# user_username: String,
@@ -116,6 +118,7 @@ module Gitlab
before: oldrev,
after: newrev,
ref: ref,
+ ref_protected: project.protected_for?(ref),
checkout_sha: checkout_sha(project.repository, newrev, ref),
message: message,
user_id: user.id,