Legend:
Page
Library
Module
Module type
Parameter
Class
Class type
Source
Page
Library
Module
Module type
Parameter
Class
Class type
Source
Organization.Hook
SourceThe Hook
module provides access to GitHub's organization webhooks API which lets you manage an organization's remote notification hooks.
for_org ~org ()
is a stream of hooks for the organization org
.
val get :
?token:Token.t ->
org:string ->
id:int64 ->
unit ->
Github_t.hook Response.t Monad.t
get ~org ~id ()
is hook id
for organization org
.
val create :
?token:Token.t ->
org:string ->
hook:Github_t.new_hook ->
unit ->
Github_t.hook Response.t Monad.t
create ~org ~hook ()
is a newly created post-receive hook for organization org
as described by hook
.
val update :
?token:Token.t ->
org:string ->
id:int64 ->
hook:Github_t.update_hook ->
unit ->
Github_t.hook Response.t Monad.t
update ~org ~id ~hook ()
is the updated hook id
for organization org
as described by hook
.
delete ~org ~id ()
activates after hook id
in organization org
has been deleted.
test ~org ~id ()
activates after a push
event for the lastest push for organization org
has been synthesized and sent to hook id
.
parse_event ~constr ~payload ()
is the event with constructor constr
that is represented by payload
.
parse_event_metadata ~payload ()
is the event metadata for the serialized event payload
.