MCPcopy Index your code
hub / github.com/PyGithub/PyGithub / subscribe_to_hub

Method subscribe_to_hub

github/Repository.py:4096–4104  ·  view source on GitHub ↗

:calls: `POST /hub `_ :param event: string :param callback: string :param secret: string :rtype: None

(self, event: str, callback: str, secret: Opt[str] = NotSet)

Source from the content-addressed store, hash-verified

4094 return status == 204
4095
4096 def subscribe_to_hub(self, event: str, callback: str, secret: Opt[str] = NotSet) -> None:
4097 """
4098 :calls: `POST /hub <https://docs.github.com/en/rest/reference/repos#pubsubhubbub>`_
4099 :param event: string
4100 :param callback: string
4101 :param secret: string
4102 :rtype: None
4103 """
4104 return self._hub("subscribe", event, callback, secret)
4105
4106 def unsubscribe_from_hub(self, event: str, callback: str) -> None:
4107 """

Callers 2

Calls 1

_hubMethod · 0.95

Tested by

no test coverage detected