JGithubHooks::create
Method to create a hook on a repository.
Signature
public function create(string
$user,
[string
$repo = true,
[string
$name = true,
[array
$config = true,
[array
$events = true,
[boolean
$active = true]]]]] )
Parameters
-
$user
- The name of the owner of the GitHub repository.
-
$repo
- The name of the GitHub repository.
-
$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.
-
$active
- Flag to determine if the hook is active
Returns
Errors/Exceptions
-
DomainException
-
RuntimeException