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
path: root/bin
diff options
context:
space:
mode:
authorGitLab Bot <gitlab-bot@gitlab.com>2020-09-10 12:08:27 +0300
committerGitLab Bot <gitlab-bot@gitlab.com>2020-09-10 12:08:27 +0300
commit1385b54a3e44a90a463d4975bd639089be056778 (patch)
tree4ba1fbd8e29115ba21472d5ebc88dfa6d9d637a4 /bin
parent8d8b960cece096fb6af9ada2ca8c88fc48b5476c (diff)
Add latest changes from gitlab-org/gitlab@master
Diffstat (limited to 'bin')
-rwxr-xr-xbin/feature-flag6
1 files changed, 5 insertions, 1 deletions
diff --git a/bin/feature-flag b/bin/feature-flag
index ba86df9c06c..c01fb67131b 100755
--- a/bin/feature-flag
+++ b/bin/feature-flag
@@ -181,6 +181,10 @@ class FeatureFlagOptionParser
$stderr.puts "URL needs to start with https://"
end
end
+
+ def read_default_enabled(options)
+ TYPES.dig(options.type, :default_enabled)
+ end
end
end
@@ -226,7 +230,7 @@ class FeatureFlagCreator
'rollout_issue_url' => options.rollout_issue_url,
'group' => options.group.to_s,
'type' => options.type.to_s,
- 'default_enabled' => false
+ 'default_enabled' => FeatureFlagOptionParser.read_default_enabled(options)
).strip
end