diff options
author | Jacob Vosmaer <contact@jacobvosmaer.nl> | 2016-05-03 13:03:10 +0200 |
---|---|---|
committer | Jacob Vosmaer <contact@jacobvosmaer.nl> | 2016-05-03 13:03:10 +0200 |
commit | f4e0c56279007fd6cec3d8e6bd684f0483b0e0ff (patch) | |
tree | a3dbc884f0acbccb5e8d483d1aa3457e4063ead0 /app/controllers | |
parent | f0c4f727359a5848d12e2097bad6a6a3190943ef (diff) | |
download | gitlab-ce-f4e0c56279007fd6cec3d8e6bd684f0483b0e0ff.tar.gz |
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')
-rw-r--r-- | app/controllers/projects/hooks_controller.rb | 2 |
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 |