JGithubHooks::edit
Method to edit a hook.
Signature
public function edit(string
$user,
[string
$repo = true,
[integer
$id = true,
[string
$name = true,
[array
$config = true,
[array
$events = true,
[array
$addEvents = true,
[array
$removeEvents = true,
[boolean
$active = true]]]]]]]] )
Parameters
-
$user
- The name of the owner of the GitHub repository.
-
$repo
- The name of the GitHub repository.
-
$id
- ID of the hook to edit.
-
$name
- The name of the service being called.
-
$config
- Array containing the config for the service.
-
$events
- The events the hook will be triggered for. This resets the currently set list
-
$addEvents
- Events to add to the hook.
-
$removeEvents
- Events to remove from the hook.
-
$active
- Flag to determine if the hook is active
Returns
Errors/Exceptions
-
DomainException
-
RuntimeException