Method: Github::Client::Repos::PubSubHubbub#unsubscribe_service
- Defined in:
- lib/github_api/client/repos/pub_sub_hubbub.rb
#unsubscribe_service(*args) ⇒ Object Also known as: unsubscribe_repository, unsubscribe_repo
Subscribe repository to service hook through pubsubhubbub
109 110 111 112 113 114 115 116 |
# File 'lib/github_api/client/repos/pub_sub_hubbub.rb', line 109 def unsubscribe_service(*args) params = arguments(args, required: [:user, :repo, :service]).params event = params.delete('event') || 'push' topic = "#{site}/#{arguments.user}/#{arguments.repo}/events/#{event}" callback = "github://#{arguments.service}" unsubscribe(topic, callback) end |