Hook¶
-
class
github.Hook.Hook¶ This class represents Hooks. The reference can be found here https://docs.github.com/en/rest/reference/repos#webhooks
-
active¶ Type: bool
-
config¶ Type: dict
-
created_at¶ Type: datetime.datetime
-
events¶ Type: list of string
-
id¶ Type: integer
-
last_response¶ Type: github.HookResponse.HookResponse
-
name¶ Type: string
-
test_url¶ Type: string
-
updated_at¶ Type: datetime.datetime
-
url¶ Type: string
-
ping_url¶ Type: string
-
delete()¶ Calls: DELETE /repos/{owner}/{repo}/hooks/{id} Return type: None
-
edit(name, config, events=NotSet, add_events=NotSet, remove_events=NotSet, active=NotSet)¶ Calls: Parameters: - name – string
- config – dict
- events – list of string
- add_events – list of string
- remove_events – list of string
- active – bool
Return type: None
-
test()¶ Calls: POST /repos/{owner}/{repo}/hooks/{id}/tests Return type: None
-
ping()¶ Calls: POST /repos/{owner}/{repo}/hooks/{id}/pings Return type: None
-