From 08505fead08f56e30baccd1d82e1030be425c7ff Mon Sep 17 00:00:00 2001 From: Konstantin Haase Date: Fri, 6 Mar 2015 15:36:31 +0100 Subject: [PATCH] v3: don't set user/token on github hook --- lib/travis/api/v3/github.rb | 9 +-------- 1 file changed, 1 insertion(+), 8 deletions(-) diff --git a/lib/travis/api/v3/github.rb b/lib/travis/api/v3/github.rb index 0766ea2c..d47eae65 100644 --- a/lib/travis/api/v3/github.rb +++ b/lib/travis/api/v3/github.rb @@ -26,18 +26,11 @@ module Travis::API::V3 end def set_hook(repository, flag) - config = { domain: Travis.config.service_hook_url || '' } - - if user - config[:user] = user.login - config[:token] = user.token - end - gh.post("repos/#{repository.slug}/hooks", name: 'travis'.freeze, events: [:push, :pull_request, :issue_comment, :public, :member], active: flag, - config: config) + config: { domain: Travis.config.service_hook_url || '' }) end end end \ No newline at end of file