2

I am trying to subscribe to changes in a particular repository but I'm getting a "No repository found for hub.topic".

Here's my request:

curl -u "user" -i https://api.github.com/hub -F "hub.mode=subscribe" -F "hub.topic=https://github.com/iOS-Goodies/iOS-Goodies/events/watch" -F "hub.callback=callback"

Given that this curl request follows Github's documentation guidelines and that it works for my own repositories, I assume this is a matter of scope.

Am I unable to subscribe to events on repositories I do not own?

Thanks

João Pereira
  • 3,545
  • 7
  • 44
  • 53
  • You have to be an administrator of the repository in order to perform that API request. The PubSubHubbub API follows the same permission rules as the [Webhooks API](https://developer.github.com/v3/repos/hooks/): "The Repository Webhooks API allows repository admins to manage the post-receive hooks for a repository. Webhooks can be managed using the JSON HTTP API, or the PubSubHubbub API." – jasonrudolph Mar 23 '15 at 12:10
  • Damn. Do you know a way of getting near realtime notifications for repositories you want to watch? If PubsubHubbub won't cut it, I guess I'm back to polling – João Pereira Mar 23 '15 at 16:06
  • @jasonrudolph Post the answer so that I can award you the points. Thanks! – João Pereira Mar 24 '15 at 11:56

1 Answers1

5

You have to be an administrator of the repository in order to perform that API request. The PubSubHubbub API follows the same permission rules as the Webhooks API: "The Repository Webhooks API allows repository admins to manage the post-receive hooks for a repository. Webhooks can be managed using the JSON HTTP API, or the PubSubHubbub API."

jasonrudolph
  • 573
  • 3
  • 8