Commit 7b612762 authored by Robert Speicher's avatar Robert Speicher

Merge branch 'git-hooks-update-notice' into 'master'

Show flash notice when Git Hooks are updated successfully

Fixes #320

See merge request !475
parents 601c6a98 2e0ba140
......@@ -9,6 +9,7 @@ v 8.9.0 (unreleased)
- Distribute RepositoryUpdateMirror jobs in time and add exclusive lease on them by project_id
- [Elastic] Move ES settings to application settings
- Disable mirror flag for projects without import_url
- Show flash notice when Git Hooks are updated successfully
- [Elastic] Project members with guest role can't access confidential issues
v 8.8.5
......
......@@ -10,7 +10,7 @@ class Admin::GitHooksController < Admin::ApplicationController
@git_hook.update_attributes(git_hook_params.merge(is_sample: true))
if @git_hook.valid?
redirect_to admin_git_hooks_path
redirect_to admin_git_hooks_path, notice: 'Git Hooks updated successfully.'
else
render :index
end
......
......@@ -17,7 +17,7 @@ class Projects::GitHooksController < Projects::ApplicationController
@git_hook.update_attributes(git_hook_params)
if @git_hook.valid?
redirect_to namespace_project_git_hooks_path(@project.namespace, @project)
redirect_to namespace_project_git_hooks_path(@project.namespace, @project), notice: 'Git Hooks updated successfully.'
else
render :index
end
......
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