summaryrefslogtreecommitdiff
path: root/app/helpers/projects_helper.rb
diff options
context:
space:
mode:
Diffstat (limited to 'app/helpers/projects_helper.rb')
-rw-r--r--app/helpers/projects_helper.rb17
1 files changed, 5 insertions, 12 deletions
diff --git a/app/helpers/projects_helper.rb b/app/helpers/projects_helper.rb
index 6684d7c456e..735a355c25a 100644
--- a/app/helpers/projects_helper.rb
+++ b/app/helpers/projects_helper.rb
@@ -154,6 +154,11 @@ module ProjectsHelper
link_to 'About auto deploy', help_page_path('ci/autodeploy/index'), target: '_blank'
end
+ def autodeploy_flash_notice(branch_name)
+ "Branch <strong>#{truncate(sanitize(branch_name))}</strong> was created. To set up auto deploy, \
+ choose a GitLab CI Yaml template and commit your changes. #{link_to_autodeploy_doc}".html_safe
+ end
+
private
def repo_children_classes(field)
@@ -272,18 +277,6 @@ module ProjectsHelper
)
end
- def url_to_autodeploy_setup(project, branch_name)
- namespace_project_new_blob_path(
- project.namespace,
- project,
- branch_name,
- file_name: '.gitlab-ci.yml',
- commit_message: 'Set up auto deploy',
- target_branch: branch_name,
- context: 'autodeploy'
- )
- end
-
def add_koding_stack_path(project)
namespace_project_new_blob_path(
project.namespace,