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

Method delete_hook

github/Organization.py:1094–1101  ·  view source on GitHub ↗

:calls: `DELETE /orgs/{org}/hooks/{hook_id} `_ :param id: integer :rtype: None`

(self, id: int)

Source from the content-addressed store, hash-verified

1092 return github.OrganizationVariable.OrganizationVariable(self._requester, url=url)
1093
1094 def delete_hook(self, id: int) -> None:
1095 """
1096 :calls: `DELETE /orgs/{org}/hooks/{hook_id} <https://docs.github.com/en/rest/reference/orgs#webhooks>`_
1097 :param id: integer
1098 :rtype: None`
1099 """
1100 assert isinstance(id, int), id
1101 headers, data = self._requester.requestJsonAndCheck("DELETE", f"{self.url}/hooks/{id}")
1102
1103 def edit(
1104 self,

Callers 1

testDeleteHookMethod · 0.80

Calls 1

requestJsonAndCheckMethod · 0.80

Tested by

no test coverage detected