diff options
author | GitLab Bot <gitlab-bot@gitlab.com> | 2020-10-28 18:08:49 +0300 |
---|---|---|
committer | GitLab Bot <gitlab-bot@gitlab.com> | 2020-10-28 18:08:49 +0300 |
commit | 77d49e6a73b3a1e142ec865d05dc3dd9a708ab6a (patch) | |
tree | 8b208f19500d18308b47807d6d2f58262752afaa /lib/gitlab/data_builder | |
parent | 24e7d185395af41290e5622cad160b7efe230145 (diff) |
Add latest changes from gitlab-org/gitlab@master
Diffstat (limited to 'lib/gitlab/data_builder')
-rw-r--r-- | lib/gitlab/data_builder/feature_flag.rb | 19 |
1 files changed, 19 insertions, 0 deletions
diff --git a/lib/gitlab/data_builder/feature_flag.rb b/lib/gitlab/data_builder/feature_flag.rb new file mode 100644 index 00000000000..2f675ace7e1 --- /dev/null +++ b/lib/gitlab/data_builder/feature_flag.rb @@ -0,0 +1,19 @@ +# frozen_string_literal: true + +module Gitlab + module DataBuilder + module FeatureFlag + extend self + + def build(feature_flag, user) + { + object_kind: 'feature_flag', + project: feature_flag.project.hook_attrs, + user: user.hook_attrs, + user_url: Gitlab::UrlBuilder.build(user), + object_attributes: feature_flag.hook_attrs + } + end + end + end +end |