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
diff options
context:
space:
mode:
authorJacob Vosmaer <contact@jacobvosmaer.nl>2016-05-03 14:03:10 +0300
committerJacob Vosmaer <contact@jacobvosmaer.nl>2016-05-03 14:03:10 +0300
commitf4e0c56279007fd6cec3d8e6bd684f0483b0e0ff (patch)
treea3dbc884f0acbccb5e8d483d1aa3457e4063ead0 /app/controllers/projects/hooks_controller.rb
parentf0c4f727359a5848d12e2097bad6a6a3190943ef (diff)
Improve documentation and web test for web hooks
I wanted to share what I learned trying to debug web hooks using netcat.
Diffstat (limited to 'app/controllers/projects/hooks_controller.rb')
-rw-r--r--app/controllers/projects/hooks_controller.rb2
1 files changed, 1 insertions, 1 deletions
diff --git a/app/controllers/projects/hooks_controller.rb b/app/controllers/projects/hooks_controller.rb
index dfa9bd259e8..366373b0f0a 100644
--- a/app/controllers/projects/hooks_controller.rb
+++ b/app/controllers/projects/hooks_controller.rb
@@ -28,7 +28,7 @@ class Projects::HooksController < Projects::ApplicationController
status, message = TestHookService.new.execute(hook, current_user)
if status
- flash[:notice] = 'Hook successfully executed.'
+ flash[:notice] = "Hook successfully executed, HTTP #{status} #{message}"
else
flash[:alert] = "Hook execution failed: #{message}"
end