Commit 2acd7ff3 authored by Douglas Barbosa Alexandre's avatar Douglas Barbosa Alexandre

Merge branch 'nfriend-enable-new_release_page-feature-flag' into 'master'

Enable the `new_release_page` feature flag by default

See merge request gitlab-org/gitlab!38913
parents 33d7e25c 3f67dd45
...@@ -29,7 +29,7 @@ class Projects::ReleasesController < Projects::ApplicationController ...@@ -29,7 +29,7 @@ class Projects::ReleasesController < Projects::ApplicationController
end end
def new def new
unless Feature.enabled?(:new_release_page, project) unless Feature.enabled?(:new_release_page, project, default_enabled: true)
redirect_to(new_project_tag_path(@project)) redirect_to(new_project_tag_path(@project))
end end
end end
......
...@@ -19,7 +19,7 @@ module ReleasesHelper ...@@ -19,7 +19,7 @@ module ReleasesHelper
documentation_path: help_page documentation_path: help_page
}.tap do |data| }.tap do |data|
if can?(current_user, :create_release, @project) if can?(current_user, :create_release, @project)
data[:new_release_path] = if Feature.enabled?(:new_release_page, @project) data[:new_release_path] = if Feature.enabled?(:new_release_page, @project, default_enabled: true)
new_project_release_path(@project) new_project_release_path(@project)
else else
new_project_tag_path(@project) new_project_tag_path(@project)
......
---
title: Add "New Release" page to allow creation of releases through the interface
merge_request: 38913
author:
type: added
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment