Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
G
gitlab-ce
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
1
Merge Requests
1
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
nexedi
gitlab-ce
Commits
2e0ba140
Commit
2e0ba140
authored
Jun 17, 2016
by
Patricio Cano
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Show flash notice when Git Hooks are updated successfully
parent
8055ca04
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
3 additions
and
2 deletions
+3
-2
CHANGELOG-EE
CHANGELOG-EE
+1
-0
app/controllers/admin/git_hooks_controller.rb
app/controllers/admin/git_hooks_controller.rb
+1
-1
app/controllers/projects/git_hooks_controller.rb
app/controllers/projects/git_hooks_controller.rb
+1
-1
No files found.
CHANGELOG-EE
View file @
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
...
...
app/controllers/admin/git_hooks_controller.rb
View file @
2e0ba140
...
...
@@ -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
...
...
app/controllers/projects/git_hooks_controller.rb
View file @
2e0ba140
...
...
@@ -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
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment