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:
authorDouwe Maan <douwe@gitlab.com>2017-05-15 18:11:45 +0300
committerBob Van Landuyt <bob@gitlab.com>2017-05-16 15:12:19 +0300
commit1fd83f972cf5ce73b3e46fd2df5ffb07889b1fd1 (patch)
tree5ac1407d05f4ab5b70baa8db65944b44dc8198fd /lib/api/project_hooks.rb
parentbcc5135ba5c48130fc8afce035726057d0445e5b (diff)
Merge branch 'bvl-rename-build-events-to-job-events' into 'master'
Rename `build_events` to `job_events` Closes #31620 See merge request !11287
Diffstat (limited to 'lib/api/project_hooks.rb')
-rw-r--r--lib/api/project_hooks.rb2
1 files changed, 0 insertions, 2 deletions
diff --git a/lib/api/project_hooks.rb b/lib/api/project_hooks.rb
index 87dfd1573a4..7a345289617 100644
--- a/lib/api/project_hooks.rb
+++ b/lib/api/project_hooks.rb
@@ -54,7 +54,6 @@ module API
end
post ":id/hooks" do
hook_params = declared_params(include_missing: false)
- hook_params[:build_events] = hook_params.delete(:job_events) { false }
hook = user_project.hooks.new(hook_params)
@@ -78,7 +77,6 @@ module API
hook = user_project.hooks.find(params.delete(:hook_id))
update_params = declared_params(include_missing: false)
- update_params[:build_events] = update_params.delete(:job_events) if update_params[:job_events]
if hook.update_attributes(update_params)
present hook, with: Entities::ProjectHook